mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-10 17:30:11 +01:00
ci: use upstream pylint as codeclimate-pylint is deprecated and doesn't support pyproject.toml
This commit is contained in:
parent
87bfe5218b
commit
4619c9d1ec
@ -1,17 +1,6 @@
|
||||
---
|
||||
version: "2"
|
||||
plugins:
|
||||
pylint:
|
||||
enabled: true
|
||||
exclude_patterns:
|
||||
- "**/*"
|
||||
- "!fdroid"
|
||||
- "!makebuildserver"
|
||||
- "!setup.py"
|
||||
- "!fdroidserver/*.py"
|
||||
- "!tests/*.py"
|
||||
- "!tests/*.TestCase"
|
||||
|
||||
shellcheck:
|
||||
enabled: true
|
||||
# Only include tests/run-tests
|
||||
|
@ -245,6 +245,7 @@ code_quality:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run code quality job in pipelines on the default branch (but not in other branch pipelines)
|
||||
- if: $CI_COMMIT_TAG # Run code quality job in pipelines for tags
|
||||
|
||||
|
||||
code_quality_html:
|
||||
extends: code_quality
|
||||
variables:
|
||||
@ -252,6 +253,27 @@ code_quality_html:
|
||||
artifacts:
|
||||
paths: [gl-code-quality-report.html]
|
||||
|
||||
|
||||
pylint:
|
||||
image: debian:bookworm-slim
|
||||
script:
|
||||
- apt-get update
|
||||
- apt-get -y install --no-install-recommends \
|
||||
python3-pip
|
||||
pylint
|
||||
- $pip install pylint-gitlab
|
||||
- pylint --exit-zero --output-format=pylint_gitlab.GitlabCodeClimateReporter
|
||||
fdroid
|
||||
makebuildserver
|
||||
setup.py
|
||||
fdroidserver/*.py
|
||||
tests/*.py
|
||||
tests/*.TestCase > pylint-report.json
|
||||
artifacts:
|
||||
reports:
|
||||
codequality: pylint-report.json
|
||||
|
||||
|
||||
# Run all the various linters and static analysis tools.
|
||||
locales:
|
||||
image: debian:bookworm-slim
|
||||
|
Loading…
Reference in New Issue
Block a user