Update pylint, mypy, and black in style check image

This commit is contained in:
Mikhail f. Shiryaev 2024-02-26 13:54:08 +01:00
parent 774fcdfff6
commit 76cbd78331
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4
2 changed files with 40 additions and 1 deletions

View File

@ -18,7 +18,7 @@ RUN apt-get update && env DEBIAN_FRONTEND=noninteractive apt-get install --yes \
python3-pip \
yamllint \
locales \
&& pip3 install black==23.1.0 boto3 codespell==2.2.1 mypy==1.3.0 PyGithub unidiff pylint==2.6.2 \
&& pip3 install black==23.12.0 boto3 codespell==2.2.1 mypy==1.8.0 PyGithub unidiff pylint==3.1.0 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /var/cache/debconf /tmp/* \
&& rm -rf /root/.cache/pip

39
pyproject.toml Normal file
View File

@ -0,0 +1,39 @@
[tool.pylint.BASIC]
max-module-lines=2000
# due to SQL
max-line-length=200
# Drop/decrease them one day:
max-branches=50
max-nested-blocks=10
max-statements=200
[tool.pylint.FORMAT]
#ignore-long-lines = (# )?<?https?://\S+>?$
[tool.pylint.'MESSAGES CONTROL']
# pytest.mark.parametrize is not callable (not-callable)
disable = '''missing-docstring,
too-few-public-methods,
invalid-name,
too-many-arguments,
keyword-arg-before-vararg,
too-many-locals,
too-many-instance-attributes,
cell-var-from-loop,
fixme,
too-many-public-methods,
wildcard-import,
unused-wildcard-import,
singleton-comparison,
not-callable,
redefined-outer-name,
broad-except,
bare-except,
no-else-return,
global-statement
'''
[tool.pylint.SIMILARITIES]
# due to SQL
min-similarity-lines=1000