Skip to content

The agent that grows with you

ci: use new, stricter ruff config

Maciej Lisiewskibfd01ac80dfb
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 82545d1e78e..31bb8938d66 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -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