Skip to content

Pylint config file #398

Answered by akaihola
simonf-dev asked this question in Q&A
Sep 30, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @simonf-dev, thanks for your question!

I've successfully configured Pylint by using either a .pylint or pylintrc file at the root of the repository. To suppress messages, you can use a section like in this example:

[MESSAGES CONTROL]
disable=wrong-import-order
disable=C0103,C0111,C0302,R0903,W0142

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…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@simonf-dev
Comment options

@akaihola
Comment options

Answer selected by akaihola
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation question Further information is requested maybe invalid? Can't reproduce, or seems already fixed, or need more information
2 participants