2023-09-26 20:01:25 +00:00
|
|
|
stages:
|
|
|
|
- quality assurance
|
|
|
|
|
2023-09-26 20:54:40 +00:00
|
|
|
backend-pylint:
|
2023-09-26 20:01:25 +00:00
|
|
|
stage: quality assurance
|
|
|
|
image: python:3.11.4-buster
|
|
|
|
before_script:
|
|
|
|
- cd backend
|
2023-09-26 20:02:00 +00:00
|
|
|
- python -m venv .venv
|
|
|
|
- source .venv/bin/activate
|
|
|
|
- echo "venv '$VIRTUAL_ENV'"
|
|
|
|
- pip install -r requirements.txt
|
2023-09-26 20:02:50 +00:00
|
|
|
- pip install pylint
|
2023-09-26 20:02:00 +00:00
|
|
|
- python --version
|
|
|
|
- python -m pip list --format=columns
|
2023-09-26 20:01:25 +00:00
|
|
|
script:
|
|
|
|
- pylint src/* --fail-under 9
|