Skip to content

Commit 31a13d9

Browse files
committed
update script import
1 parent 9e88d5f commit 31a13d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/add_rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def main(*, name: str, prefix: str, code: str, linter: str) -> None:
9292
with (rules_dir / f"{rule_name_snake}.rs").open("w") as fp:
9393
fp.write(
9494
f"""\
95-
use ruff_diagnostics::Violation;
95+
use crate::Violation;
9696
use ruff_macros::{{ViolationMetadata, derive_message_formats}};
9797
9898
use crate::checkers::ast::Checker;

0 commit comments

Comments
 (0)