Merge branch 'polish-pylint' into 'master'

polish pylint

See merge request fdroid/fdroidserver!1637
This commit is contained in:
Hans-Christoph Steiner 2025-06-16 17:13:27 +00:00
commit 964861eb68
2 changed files with 2 additions and 7 deletions

View File

@ -268,13 +268,12 @@ pylint:
script:
- apt-get install pylint python3-pip
- $pip install --break-system-packages pylint-gitlab
- pylint --output-format=pylint_gitlab.GitlabCodeClimateReporter
- pylint --output-format=colorized,pylint_gitlab.GitlabCodeClimateReporter:pylint-report.json
fdroid
makebuildserver
setup.py
fdroidserver/*.py
tests/*.py
> pylint-report.json
artifacts:
reports:
codequality: pylint-report.json

View File

@ -78,7 +78,7 @@ disable_error_code = "no-redef, misc, arg-type"
# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
# number of processors available to use, and will cap the count on Windows to
# avoid hangs.
jobs = 4
jobs = 0
# Minimum Python version to use for version dependent checks. Will default to the
# version used to run pylint.
@ -87,10 +87,6 @@ py-version = "3.9"
# Files or directories to be skipped. They should be base names, not paths.
ignore = ["apksigcopier.py", "looseversion.py"]
[tool.pylint.basic]
# Good variable names which should always be accepted, separated by a comma.
good-names = ["i", "j", "k", "ex", "Run", "f", "fp"]
[tool.pylint."messages control"]
# Only show warnings with the listed confidence levels. Leave empty to show all.
# Valid levels: HIGH, CONTROL_FLOW, INFERENCE, INFERENCE_FAILURE, UNDEFINED.