Skip to content

Commit

Permalink
Enabled pylint
Browse files Browse the repository at this point in the history
- configured to baseline project errors
- using line-length 130, a 10 threshold with black tool
  • Loading branch information
rsb-23 committed Jan 14, 2025
1 parent d97cb1d commit 7cc72c1
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 3 deletions.
65 changes: 65 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[MASTER]
jobs=2

[FORMAT]
max-line-length = 130

[REFACTORING]
max-args = 8
max-attributes = 9
max-bool-expr = 6
max-branches = 32
max-locals = 31
max-module-lines = 27989
max-nested-blocks = 6
max-positional-arguments = 8
max-statements = 95

[MESSAGES CONTROL]
disable=
I,
# E
no-member,
possibly-used-before-assignment,
undefined-variable,
# W
arguments-differ,
attribute-defined-outside-init,
broad-exception-caught,
deprecated-module,
fixme,
keyword-arg-before-vararg,
logging-format-interpolation,
pointless-statement,
pointless-string-statement,
protected-access,
raise-missing-from,
redefined-builtin,
redefined-outer-name,
undefined-loop-variable,
unnecessary-pass,
unspecified-encoding,
unused-argument,
unused-variable,
# C
consider-iterating-dictionary,
consider-using-f-string,
import-outside-toplevel,
invalid-name,
line-too-long,
missing-docstring,
unidiomatic-typecheck,
use-implicit-booleaness-not-len,
# R
consider-using-with,
duplicate-code,
inconsistent-return-statements,
no-else-break,
no-else-raise,
no-else-return,
redefined-argument-from-local,
super-with-arguments,
too-few-public-methods,
use-yield-from,
useless-object-inheritance,
useless-return,
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ profile = "black"
line_length = 120
multi_line_output = 3

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

[tool.tox]
requires = ["tox>=4.19"]
env_list = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
Expand Down

0 comments on commit 7cc72c1

Please sign in to comment.