Codequality with pylint-gitlab
This commit is contained in:
parent
da222b5d11
commit
5d31e276aa
1 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue