Skip to content

Commit

Permalink
wrong code format fails pipeline now
Browse files Browse the repository at this point in the history
  • Loading branch information
wahln committed Feb 27, 2025
1 parent b31e2ae commit 4b01ccc
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ lint:
- ruff check --output-format grouped || return_code=$(($return_code + $?))
- ruff check --exit-zero --output-format grouped --output-file ruff.txt
- ruff check --exit-zero --output-format gitlab --output-file gl-code-quality-report.json
- ruff format --check || return_code=$(($return_code + $?))
- exit $return_code
artifacts:
reports:
Expand All @@ -56,6 +55,18 @@ lint:

allow_failure: true

format:
stage: test
cache:
key: "cache-$CI_COMMIT_REF_SLUG"
paths:
- .venv/
- .cache/pip/
policy: pull
script:
- source .venv/bin/activate
- pip install ruff
- ruff format --check

tests:
stage: test
Expand Down

0 comments on commit 4b01ccc

Please sign in to comment.