Skip to content
Snippets Groups Projects

allow CI to fail if ruff or black is unhappy, and format source to make it pass

Merged Hans Fangohr requested to merge activate-style-checks-in-ci into linux-debian11
All threads resolved!
Files
3
+ 15
18
image: python:latest
stages:
- test-style
- test
before_script:
- cat /etc/issue
- python -V
- which python
- python -m venv ../venv
- source ../venv/bin/activate
- which python
- pwd
- pip install -U pip
- pip --version
- pip install pytest black ruff
- pytest --version
- cat /etc/issue
- python -V
- which python
- python -m venv ../venv
- source ../venv/bin/activate
- which python
- pwd
- pip install -U pip
- pip --version
- pip install pytest black ruff
- pytest --version
style:
stage: test-style
stage: test
image: python:latest
script:
- black --version
- ruff --version
- ruff . || true
- black --check --diff . || true
- ruff .
- black --check --diff .
test3-09:
@@ -49,4 +47,3 @@ test3-11:
script:
- echo "run tests here later"
- python --version
Loading