Skip to content

Commit

Permalink
add pylint defaults to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
rpreen committed Jun 3, 2024
1 parent 6e1dde5 commit 8dddcaf
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,21 @@ enable = [
"useless-suppression",
]

[tool.pylint.design]
max-args = 5 # Maximum number of arguments for function / method (see R0913).
max-attributes = 7 # Maximum number of attributes for a class (see R0902).
max-branches = 12 # Maximum number of branch for function / method body (see R0912).
max-locals = 15 # Maximum number of parents for a class (see R0914).
max-parents = 7 # Maximum number of parents for a class (see R0901).
max-public-methods = 20 # Maximum number of public methods for a class (see R0904).
max-returns = 6 # Maximum number of return / yield for function / method body (see R0911).
max-statements = 50 # Maximum number of statements in function / method body (see R0915).
min-public-methods = 2 # Minimum number of public methods for a class (see R0903).

[tool.pylint.format]
max-line-length = 100 # Maximum number of characters on a single line.
max-module-lines = 1000 # Maximum number of lines in a module.

[tool.mypy]
python_version = "3.9"
#exclude = "docs/source/conf.py"
Expand Down

0 comments on commit 8dddcaf

Please sign in to comment.