Use uv to manage requirements
This commit is contained in:
parent
e95c2a440e
commit
a041d5f7fa
15 changed files with 998 additions and 1334 deletions
|
|
@ -3,12 +3,12 @@ python-linting:
|
|||
image: python:3.11
|
||||
before_script:
|
||||
- pip install uv
|
||||
- uv pip install --system --requirement requirements/ci.txt
|
||||
- uv sync --extra testing --extra ci
|
||||
script:
|
||||
- isort --check-only src/
|
||||
- black --line-length 88 --check src/
|
||||
- ./.venv/bin/isort --check-only src/
|
||||
- ./.venv/bin/black --line-length 88 --check src/
|
||||
- |
|
||||
autoflake --check \
|
||||
./.venv/bin/autoflake --check \
|
||||
--recursive \
|
||||
--remove-all-unused-imports \
|
||||
--ignore-init-module-imports \
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ python-tests:
|
|||
image: python:3.11
|
||||
before_script:
|
||||
- pip install uv
|
||||
- uv pip install --system --requirement requirements/ci.txt
|
||||
- uv sync --extra testing --extra ci
|
||||
script:
|
||||
- coverage run ./src/manage.py test newsreader
|
||||
- ./.venv/bin/coverage run ./src/manage.py test newsreader
|
||||
|
||||
javascript-tests:
|
||||
stage: test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue