test: initial pylint support
disabling all meaningful checks, will tackle each next...
This commit is contained in:
parent
9805991916
commit
04de98a787
3 changed files with 42 additions and 1 deletions
37
.pylintrc
Normal file
37
.pylintrc
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
# -*- mode: conf; -*-
|
||||||
|
|
||||||
|
[MESSAGES CONTROL]
|
||||||
|
disable=fixme,
|
||||||
|
duplicate-code,
|
||||||
|
abstract-method,
|
||||||
|
arguments-differ,
|
||||||
|
arguments-renamed,
|
||||||
|
attribute-defined-outside-init,
|
||||||
|
broad-exception-caught,
|
||||||
|
consider-using-dict-comprehension,
|
||||||
|
consider-using-f-string,
|
||||||
|
consider-using-set-comprehension,
|
||||||
|
empty-docstring,
|
||||||
|
implicit-str-concat,
|
||||||
|
inconsistent-return-statements,
|
||||||
|
invalid-name,
|
||||||
|
missing-class-docstring,
|
||||||
|
missing-function-docstring,
|
||||||
|
no-else-return,
|
||||||
|
no-member,
|
||||||
|
no-self-argument,
|
||||||
|
redefined-outer-name,
|
||||||
|
singleton-comparison,
|
||||||
|
too-few-public-methods,
|
||||||
|
too-many-arguments,
|
||||||
|
too-many-branches,
|
||||||
|
too-many-lines,
|
||||||
|
too-many-locals,
|
||||||
|
too-many-positional-arguments,
|
||||||
|
too-many-public-methods,
|
||||||
|
unnecessary-lambda-assignment,
|
||||||
|
unused-argument,
|
||||||
|
unused-import,
|
||||||
|
unused-variable,
|
||||||
|
unused-wildcard-import,
|
||||||
|
wildcard-import,
|
|
@ -40,7 +40,7 @@ dependencies = [
|
||||||
postgres = ["psycopg2"]
|
postgres = ["psycopg2"]
|
||||||
mysql = ["mysql-connector-python"]
|
mysql = ["mysql-connector-python"]
|
||||||
docs = ["Sphinx", "furo", "sphinxcontrib-programoutput", "enum-tools[sphinx]"]
|
docs = ["Sphinx", "furo", "sphinxcontrib-programoutput", "enum-tools[sphinx]"]
|
||||||
tests = ["pytest-cov", "tox"]
|
tests = ["pylint", "pytest", "pytest-cov", "tox"]
|
||||||
|
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
|
|
4
tox.ini
4
tox.ini
|
@ -6,6 +6,10 @@ envlist = py38, py39, py310, py311
|
||||||
extras = tests
|
extras = tests
|
||||||
commands = pytest {posargs}
|
commands = pytest {posargs}
|
||||||
|
|
||||||
|
[testenv:pylint]
|
||||||
|
basepython = python3.11
|
||||||
|
commands = pylint sideshow
|
||||||
|
|
||||||
[testenv:coverage]
|
[testenv:coverage]
|
||||||
basepython = python3.11
|
basepython = python3.11
|
||||||
commands = pytest --cov=sideshow --cov-report=html --cov-fail-under=100
|
commands = pytest --cov=sideshow --cov-report=html --cov-fail-under=100
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue