Skip to content

Commit

Permalink
Fix static checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Scony committed Oct 7, 2024
1 parent 62cf3c9 commit 3eedfd5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
9 changes: 9 additions & 0 deletions pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[MESSAGES CONTROL]
disable =
fixme,
missing-function-docstring, # too pedantic
missing-module-docstring, # too pedantic
missing-class-docstring, # too pedantic
consider-using-f-string, # TODO: fix only cases that make sense
duplicate-code, # TODO: check (fails on CI)
W1514,C0411,R0903,W0719,C0200,R0022,C0206,C1803,C0103,C0301,R1732
18 changes: 6 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ commands =
[testenv:lint]
deps =
pytest > 5
pylint == 2.7.1
pylint == 3.0.3
mccabe
flake8
flake8 == 5.0.4
flake8-comprehensions
flake8-bugbear
commands =
pylint -rn -j0 setup.py gdtoolkit/ tests/ --rcfile=tox.ini
pylint -rn -j0 setup.py gdtoolkit/ tests/ --rcfile=pylintrc
flake8 gdtoolkit/ --max-complexity 20 --config=tox.ini

[testenv:format]
Expand All @@ -35,7 +35,7 @@ commands =

[testenv:mypy]
deps =
mypy == 0.961
mypy == 0.981
commands =
mypy --install-types --non-interactive \
gdtoolkit/ \
Expand Down Expand Up @@ -65,16 +65,10 @@ deps =
commands =
pytest --profile-svg {posargs}

[MESSAGES CONTROL]
disable =
fixme,global-statement,
too-few-public-methods,
C,
R0801

[flake8]
ignore =
E121,E123,E126,E226,E24,E704,W503,W504 # defaults
, E203 # whitespace before ':'
, C417 # TODO: fix if possible
, E231,E702,E275 # false-positives in Python 3.12
, C417,E501
max-line-length = 88

0 comments on commit 3eedfd5

Please sign in to comment.