Codequality with pylint-gitlab

This commit is contained in:
Firq 2023-10-01 22:16:28 +02:00
parent da222b5d11
commit 5d31e276aa
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20

View file

@ -15,10 +15,17 @@ backend-pylint:
stage: quality assurance
image: python:3.11.4-buster
before_script:
- mkdir -p public/lint
- cd backend
- *init_venv
- *install_requirements
- pip install pylint --disable-pip-version-check -q
- pip install pylint pylint-gitlab --disable-pip-version-check -q
- pylint --version
script:
- pylint src/* --fail-under 9
- pylint src/* --exit-zero --output-format=pylint_gitlab.GitlabCodeClimateReporter > codeclimate.json
artifacts:
paths:
- public
reports:
codequality: codeclimate.json
when: always