Skip to content

Commit

Permalink
qa: Move pylint configuration to pyproject.toml
Browse files Browse the repository at this point in the history
That's where all tools are configured (except ReadTheDocs, which does
not support `pyproject.toml`).
  • Loading branch information
dbaty committed May 15, 2024
1 parent 777729b commit c0a9c4c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 76 deletions.
76 changes: 0 additions & 76 deletions .pylintrc

This file was deleted.

44 changes: 44 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,47 @@ known_tests = ["tests"]
skip = [
"docs/conf.py",
]


[tool.pylint.MASTER]
load-plugins = [
"pylint_strict_informational",
]

[tool.pylint.FORMAT]
max-line-length = 120

[tool.pylint."MESSAGES CONTROL"]
enable = [
"use-symbolic-message-instead",
"useless-suppression",
]

disable = [
"arguments-differ",
"attribute-defined-outside-init",
"cyclic-import",
"duplicate-code",
"fixme",
"file-ignored",
"import-outside-toplevel",
"invalid-name",
"locally-disabled",
"missing-docstring",
"no-member",
"protected-access",
"superfluous-parens",
"too-few-public-methods",
"too-many-ancestors",
"too-many-arguments",
"too-many-branches",
"too-many-instance-attributes",
"too-many-lines",
"too-many-locals",
"too-many-public-methods",
"too-many-statements",
"ungrouped-imports",
"unused-argument",
"useless-return",
"wrong-import-order", # we `isort` with a custom config
]

0 comments on commit c0a9c4c

Please sign in to comment.