1
0
mirror of https://gitlab.com/2-chainz/2chainz.git synced 2025-08-01 19:21:24 +00:00

do ruff stuff in CI

This commit is contained in:
2025-05-23 14:35:11 -06:00
parent fdcf5be4c9
commit 972ce7c8cb
3 changed files with 42 additions and 14 deletions

View File

@@ -6,6 +6,28 @@ variables:
# so we need to copy instead of using hard links.
UV_LINK_MODE: copy
.base_ruff:
stage: build
interruptible: true
image:
name: ghcr.io/astral-sh/ruff:0.11.10-alpine
before_script:
- cd $CI_PROJECT_DIR
- ruff --version
Ruff Check:
extends: .base_ruff
script:
- ruff check --output-format=gitlab > code-quality-report.json
artifacts:
reports:
codequality: $CI_PROJECT_DIR/code-quality-report.json
Ruff Format:
extends: .base_ruff
script:
- ruff format --diff
pytest:
image: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER
stage: test