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 . - isort --check .
interruptible: true interruptible: true
test-ruff: test-ruff-lint:
image: gajim-test image: gajim-test
stage: test stage: test
rules: rules:
@@ -28,17 +28,19 @@ test-ruff:
- "**/*.py" - "**/*.py"
script: script:
- ruff --version - 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 interruptible: true
test-black: test-ruff-format:
image: gajim-test image: gajim-test
stage: test stage: test
rules: rules:
- changes: - changes:
- "**/*.py" - "**/*.py"
script: script:
- pip install black==24.10.0 - ruff --version
- black --version - ruff format --diff
- black . --check
interruptible: true interruptible: true