ruff
b4419c34 - Ignore `@override` method when enforcing `bad-dunder-name` rule (#7224)

Comment changes are shownComment changes are hidden
Commit
1 year ago
Ignore `@override` method when enforcing `bad-dunder-name` rule (#7224) ## Summary Closes #6958. If a method has the `override` decorator, there is nothing you can do about incorrect dunder methods, so they should be ignored. ## Test Plan Overridden incorrect dunder method was added to the tests to verify ruff doesn't catch it when evaluating the file. Snapshot changes are all just line number changes
Author
Parents
  • crates/ruff
    • resources/test/fixtures/pylint
      • File
        bad_dunder_method_name.py
    • src/rules/pylint
      • rules
        • File
          bad_dunder_method_name.rs
      • snapshots
        • ruff__rules__pylint__tests__PLW3201_bad_dunder_method_name.py.snap