fix: Update add_rule.py to account for 81996f1bc

This commit is contained in:
Martin Fischer 2023-01-20 09:00:41 +01:00 committed by Charlie Marsh
parent f012877be1
commit c00df647e1
2 changed files with 4 additions and 1 deletions

View file

@ -91,7 +91,7 @@ impl Violation for %s {
if has_written: if has_written:
continue continue
if line.startswith("define_rule_mapping!"): if line.startswith("ruff_macros::define_rule_mapping!"):
seen_macro = True seen_macro = True
continue continue
@ -104,6 +104,8 @@ impl Violation for %s {
fp.write("\n") fp.write("\n")
has_written = True has_written = True
assert has_written
if __name__ == "__main__": if __name__ == "__main__":
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(

View file

@ -1,6 +1,7 @@
[tool.ruff] [tool.ruff]
select = ["ALL"] select = ["ALL"]
ignore = [ ignore = [
"S101", # assert-used
"PLR2004", # magic-value-comparison "PLR2004", # magic-value-comparison
] ]