mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-09 22:25:09 +00:00
fix: Update add_rule.py to account for 81996f1bc
This commit is contained in:
parent
f012877be1
commit
c00df647e1
2 changed files with 4 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue