Skip to content

Commit c9cc05c

Browse files
nhortonclaude
andcommitted
feat: add Makefile lint target and use it as precomputed lint output
Add a Makefile with a `lint` target that runs ruff format, ruff check --fix, and mypy — matching CI but auto-fixing where possible. Use `make lint` as the precomputed_info_for_reviewer_bash_command for the python_lint review rule so the reviewer gets results without running tools itself. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 442f4a0 commit c9cc05c

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

.deepreview

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,17 @@ python_lint:
7474
- "tests/fixtures/**"
7575
review:
7676
strategy: matches_together
77+
precomputed_info_for_reviewer_bash_command: make lint
7778
instructions: |
7879
This is an auto-fix rule — you SHOULD edit files to resolve issues.
7980

80-
Run ruff and mypy on the changed Python files listed below. Fix what you
81-
can automatically, then report only issues that remain unresolved.
81+
The precomputed lint output above shows the results of running `make lint`
82+
(ruff format, ruff check --fix, mypy) on the entire project.
8283

83-
Steps:
84-
1. Run `uv run ruff check --fix` on all listed files.
85-
2. Run `uv run ruff format` on all listed files.
86-
3. Run `uv run mypy` on all listed files.
87-
4. Fix any remaining issues you can resolve (e.g., adding type annotations,
84+
If there are remaining errors:
85+
1. Fix any issues you can resolve (e.g., adding type annotations,
8886
renaming ambiguous variables).
89-
5. Re-run all three checks to confirm your fixes are clean.
87+
2. Re-run `make lint` to confirm your fixes are clean.
9088

9189
Output Format:
9290
- PASS: All checks pass (no remaining issues).

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
lint:
2+
@echo "## make lint output"
3+
uv run ruff format src/ tests/
4+
uv run ruff check --fix src/ tests/
5+
uv run mypy src/

0 commit comments

Comments
 (0)