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
659 stars 62 forks source link

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

Closed amyreese closed 1 month ago

amyreese commented 1 month ago

Stack from ghstack (oldest at bottom):

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