ci: use new, stricter ruff config
This commit is contained in:
8
.github/workflows/lint.yml
vendored
8
.github/workflows/lint.yml
vendored
@@ -73,7 +73,7 @@ jobs:
|
||||
- name: Run ruff + ty on HEAD
|
||||
run: |
|
||||
mkdir -p .lint-reports/head
|
||||
ruff check --output-format json --exit-zero \
|
||||
ruff check --config ruff.strict.toml --output-format json --exit-zero \
|
||||
> .lint-reports/head/ruff.json || true
|
||||
ty check --output-format gitlab --exit-zero \
|
||||
> .lint-reports/head/ty.json || true
|
||||
@@ -96,7 +96,7 @@ jobs:
|
||||
git worktree add --detach /tmp/lint-base "$BASE_SHA"
|
||||
(
|
||||
cd /tmp/lint-base
|
||||
ruff check --output-format json --exit-zero \
|
||||
ruff check --config ruff.strict.toml --output-format json --exit-zero \
|
||||
> "$GITHUB_WORKSPACE/.lint-reports/base/ruff.json" || true
|
||||
ty check --output-format gitlab --exit-zero \
|
||||
> "$GITHUB_WORKSPACE/.lint-reports/base/ty.json" || true
|
||||
@@ -145,11 +145,11 @@ jobs:
|
||||
with:
|
||||
command: python -m scripts.ci.python_packages "$(python -m scripts.code_health --print-pins)"
|
||||
|
||||
- name: ruff check .
|
||||
- name: ruff check .
|
||||
# No --exit-zero, no || true. Exit code propagates to the job,
|
||||
# which propagates to the required-check gate.
|
||||
run: |
|
||||
ruff check .
|
||||
ruff check --config ruff.strict.toml .
|
||||
|
||||
code-health:
|
||||
# Per-unit ratchet: every function and file keeps its own cap (its value on main when it is
|
||||
|
||||
Reference in New Issue
Block a user