Skip to content

Commit

Permalink
Changed pylint to run on a per-module basis, more srictly
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanaelbosch committed Aug 19, 2020
1 parent 6e847a5 commit e932102
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 22 deletions.
20 changes: 0 additions & 20 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,28 +36,8 @@ invalid-name,
no-else-return,
no-else-raise,
fixme,
too-many-arguments,
missing-module-docstring,
missing-function-docstring,
abstract-method,
unused-argument,
too-many-branches,
arguments-differ,
redefined-builtin,
too-few-public-methods,
too-many-locals,
no-self-use,
too-many-lines,
broad-except,
abstract-class-instantiated,
protected-access,
duplicate-code,
too-complex,
too-many-instance-attributes,
too-many-statements,
attribute-defined-outside-init,
"""

[tool.pylint.format]
Expand Down
13 changes: 11 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,19 @@ commands =
asv machine --yes
asv dev




[testenv:pylint]
basepython = python3
description = Code linting with pylint
deps = pylint
commands =
pylint src
pylint tests --disable="line-too-long,duplicate-code,missing-class-docstring,unnecessary-pass,unused-variable"
# pylint src
pylint src/probnum/diffeq --disable="protected-access,abstract-class-instantiated,too-many-locals,too-few-public-methods,too-many-arguments,unused-argument"
pylint src/probnum/filtsmooth --disable="duplicate-code,protected-access,no-self-use,too-many-locals,arguments-differ,too-many-arguments,unused-argument"
pylint src/probnum/linalg --disable="attribute-defined-outside-init,too-many-statements,too-many-instance-attributes,too-complex,protected-access,too-many-lines,no-self-use,too-many-locals,redefined-builtin,arguments-differ,abstract-method,too-many-arguments,too-many-branches,duplicate-code,unused-argument,fixme"
pylint src/probnum/prob --disable="too-many-instance-attributes,broad-except,arguments-differ,abstract-method,too-many-arguments,protected-access,duplicate-code,unused-argument,fixme"
pylint src/probnum/quad --disable="attribute-defined-outside-init,too-few-public-methods,redefined-builtin,arguments-differ,unused-argument"
pylint src/probnum/utils --disable="duplicate-code"
pylint tests --disable="line-too-long,duplicate-code,missing-class-docstring,unnecessary-pass,unused-variable,protected-access,attribute-defined-outside-init,no-self-use,abstract-class-instantiated,too-many-arguments,too-many-instance-attributes,too-many-locals,unused-argument,fixme"

0 comments on commit e932102

Please sign in to comment.