Instagram / Fixit

Advanced Python linting framework with auto-fixes and hierarchical configuration that makes it easy to write custom in-repo lint rules.
https://fixit.rtfd.io/en/latest/
Other
668 stars 61 forks source link

Allow a targeted (named rule) enable to override a module disable #464

Closed amyreese closed 3 months ago

amyreese commented 3 months ago

This allows the following configuration to work as a way of disabling all of the builtin rules except for specific ones:

[tool.fixit]
disable = ["fixit.rules"]
enable = ["fixit.rules:UseClsInClassmethod"]

Co-authored-by: surge119 ly.sergio480@gmail.com