mirror of
https://github.com/astral-sh/ruff
synced 2026-01-07 14:44:17 -05:00
fix: Update add_rule.py to account for 81996f1bc
This commit is contained in:
committed by
Charlie Marsh
parent
f012877be1
commit
c00df647e1
@@ -91,7 +91,7 @@ impl Violation for %s {
|
||||
if has_written:
|
||||
continue
|
||||
|
||||
if line.startswith("define_rule_mapping!"):
|
||||
if line.startswith("ruff_macros::define_rule_mapping!"):
|
||||
seen_macro = True
|
||||
continue
|
||||
|
||||
@@ -104,6 +104,8 @@ impl Violation for %s {
|
||||
fp.write("\n")
|
||||
has_written = True
|
||||
|
||||
assert has_written
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
[tool.ruff]
|
||||
select = ["ALL"]
|
||||
ignore = [
|
||||
"S101", # assert-used
|
||||
"PLR2004", # magic-value-comparison
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user