How to enable all rules via CLI but then ignore some via config file? #4237
-
I would like to enable all rules by default on the command-line (i.e. the Example: print("hello world") When I run
Now I want to allow both of them via the ignore = ["D100", "T201"] But running the same command again does not give any different results. How would one be able to achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
As per the documentation of rule selection:
So, this means that the selecting all options through the CLI take precedence over ignoring some of them in config file. The solution is to switch how you're providing the options:
|
Beta Was this translation helpful? Give feedback.
As per the documentation of rule selection:
So, this means that the selecting all options through the CLI take precedence over ignoring some of them in config file.
The solution is to switch how you're providing the options:
pyproject.toml
, useselect = ["ALL"]
--ignore