Pylint config file #398
-
Hello, I'm trying to pass Darker my custom setup for pylint, but it seems that Darker doesn't care about my settings at all: Command that I use: darker --config pyproject.toml --rev master -L pylint . Am I doing something wrong, or it's impossible to pass pylint my settings right now? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @simonf-dev, thanks for your question! I've successfully configured Pylint by using either a [MESSAGES CONTROL]
disable=wrong-import-order
disable=C0103,C0111,C0302,R0903,W0142 Darker uses the file pointed to by the The You can provide command line arguments to linters by quoting a command line, e.g.: darker --lint "pylint --disable=no-self-use" . I would like to make sure the documentation of Darker is clear on this topic as well. If you feel like the documentation has misled you, could you point to the section to improve? Thanks! |
Beta Was this translation helpful? Give feedback.
Hi @simonf-dev, thanks for your question!
I've successfully configured Pylint by using either a
.pylint
orpylintrc
file at the root of the repository. To suppress messages, you can use a section like in this example:Darker uses the file pointed to by the
--config
parameter to configure its own behavior and to pass certain options on to Black and Isort. It doesn't attempt to affect linters' settings in any way.The
-L
/--lint
parameter treats its value (pylint
in your example) as just a command line to invoke. Darker has no understanding of any particular linters you may run using that option. So configuri…