Merge branch 'use-codeclimate-for-linting-tests' into 'master'

ci: use GitLab Code Quality for linting tests

See merge request fdroid/fdroidserver!1443
This commit is contained in:
Hans-Christoph Steiner 2025-03-26 21:33:31 +00:00
commit ef4bbe4612
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,3 @@
[bandit]
skips: B110,B404,B408,B603,B607
skips: B110,B404,B408,B603,B607,B322
targets: .

View file

@ -222,7 +222,7 @@ lint_format_bandit_checks:
python3-pip
python3-yaml
shellcheck
- $pip install --break-system-packages bandit
- $pip install --break-system-packages bandit pylint-gitlab
- export EXITVALUE=0
- function set_error() { export EXITVALUE=1; printf "\x1b[31mERROR `history|tail -2|head -1|cut -b 6-500`\x1b[0m\n"; }
- ./hooks/pre-commit || set_error
@ -231,16 +231,21 @@ lint_format_bandit_checks:
-ii
--ini .bandit
|| set_error
- pylint --output-format=colorized --reports=n
- pylint --output-format=pylint_gitlab.GitlabCodeClimateReporter
fdroid
makebuildserver
setup.py
fdroidserver/*.py
tests/*.py
> pylint-report.json
|| set_error
- shellcheck --exclude SC2046,SC2090 --severity=warning --color tests/run-tests
|| set_error
- exit $EXITVALUE
artifacts:
reports:
codequality: pylint-report.json
when: always
# Check all the dependencies in Debian to mirror production. CVEs are