test(linter): use pdm for linter installation

Refs: #5
Signed-off-by: Klagarge <remi@heredero.ch>
This commit is contained in:
2025-03-19 21:56:44 +01:00
parent eda58ace70
commit 5e926d7674
4 changed files with 74 additions and 14 deletions

View File

@@ -31,8 +31,11 @@ lint job:
stage: lint
dependencies: []
script:
- python3 -m pip install flake8
- flake8 src/
- cd src/
- cp -r /app/__pypackages__ .
- export PYTHONPATH="/builds/Klagarge/mse2425-grp09/src:/builds/Klagarge/mse2425-grp09/src/__pypackages__/3.9/lib"
- export PATH="/builds/Klagarge/mse2425-grp09/src/__pypackages__/3.9/bin:$PATH"
- pdm run flake8 --config=../tox.ini
allow_failure: true # Linter can fail, fixing it is for now outside of the projects scope
pages: