Ruff linter for all frameworks #12512
-
Do I understand correctly that in the future you plan to create a linter and formatter for all python frameworks? From the description I see that you support numpy, fastapi and so on. Maybe I didn't understand correctly. For example, i prefer use ruff |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Luckily, most lint rules aren't framework-specific so that Ruff can be used with any framework. Depending on the framework, it may make sense to enable or disable specific rules because they only make sense in this context or because they don't play nicely with a specific set of packages.
Ruff comes with built-in rules for some widely used packages. Supporting custom rules for less used packages is probably something we want to do by supporting plugins #283
I'm not sure if I understand that part, but we prefer a framework-agnostic style guide over maintaining many different style guides per framework (which style guide should be used if you use two frameworks together that have a conflicting style guide?) |
Beta Was this translation helpful? Give feedback.
Luckily, most lint rules aren't framework-specific so that Ruff can be used with any framework. Depending on the framework, it may make sense to enable or disable specific rules because they only make sense in this context or because they don't play nicely with a specific set of packages.
Ruff comes with built-in rules for some widely used packages. Supporting custom rules for less used packages is probably something we want to do by supporting plugins #283