Run ruff checks in ci

This commit is contained in:
Philipp Hörist
2026-01-02 17:33:50 +01:00
parent aed2ce4729
commit d49f98502b

View File

@@ -20,7 +20,7 @@ test-isort:
- isort --check .
interruptible: true
test-ruff:
test-ruff-lint:
image: gajim-test
stage: test
rules:
@@ -28,17 +28,19 @@ test-ruff:
- "**/*.py"
script:
- ruff --version
- ruff check .
- ruff check --output-format=gitlab --output-file=code-quality-report.json
artifacts:
reports:
codequality: $CI_PROJECT_DIR/code-quality-report.json
interruptible: true
test-black:
test-ruff-format:
image: gajim-test
stage: test
rules:
- changes:
- "**/*.py"
script:
- pip install black==24.10.0
- black --version
- black . --check
- ruff --version
- ruff format --diff
interruptible: true