Skip to content

The agent that grows with you

ci: make ruff strict the default

Maciej Lisiewskid68bb0c9aea2
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 31bb8938d66..df75595a86d 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 --config ruff.strict.toml --output-format json --exit-zero \
+ ruff check --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 --config ruff.strict.toml --output-format json --exit-zero \
+ ruff check --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
@@ -149,7 +149,7 @@ jobs:
# No --exit-zero, no || true. Exit code propagates to the job,
# which propagates to the required-check gate.
run: |
- ruff check --config ruff.strict.toml .
+ ruff check .
code-health:
# Per-unit ratchet: every function and file keeps its own cap (its value on main when it is
diff --git a/lefthook.yml b/lefthook.yml
index f13dbe4ae51..dadec49efeb 100644
--- a/lefthook.yml
+++ b/lefthook.yml
@@ -2,4 +2,4 @@ pre-commit:
jobs:
- name: lint python
glob: "*.py" # glob filter
- run: ruff check --config ./ruff.strict.toml {staged_files}
+ run: ruff check {staged_files}
diff --git a/ruff.strict.toml b/ruff.toml
similarity index 100%
rename from ruff.strict.toml
rename to ruff.toml