From bfd01ac80dfb56cd5692b0d57c74ff8b79d02e09 Mon Sep 17 00:00:00 2001 From: Maciej Lisiewski Date: Fri, 9 Oct 2026 18:16:05 +0200 Subject: [PATCH] ci: use new, stricter ruff config --- .github/workflows/lint.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 82545d1e78..31bb8938d6 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