1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2025-09-17 08:56:42 +02:00

.github/workflows: adjust flake8 lint action

It is picking up the virtual environment in .venv and failing on a
bunch of code unrelated to ours.
This commit is contained in:
2025-09-16 18:51:12 +03:00
parent 0a911b8f69
commit 6f81e7735b

View File

@@ -36,9 +36,9 @@ jobs:
- name: Lint with flake8 - name: Lint with flake8
run: | run: |
# stop the build if there are Python syntax errors or undefined names # stop the build if there are Python syntax errors or undefined names
uv run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics uv run flake8 src --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
uv run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics uv run flake8 src --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Set up PostgreSQL - name: Set up PostgreSQL
run: | run: |
pg_isready -U postgres -d dspacestatistics pg_isready -U postgres -d dspacestatistics