mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
feat(gateway): run the full fast gate (incl. complexity) at the dev's desk
Add a per-project `quality_command` (model + ORM + API + panel + migration 029) that the pre-submit gate prefers over the lint/typecheck pair. Pointed at the new `make gate` target (ruff format --check + ruff check + mypy + xenon, no tests), i_am_done now catches lint, type AND complexity failures in the developer's workspace before QA — closing the gap where over-complex code only failed in CI. Falls back to lint+typecheck when unset; a no-op when no commands are configured.
This commit is contained in:
@@ -277,6 +277,17 @@ quality-fast:
|
||||
@uv run mypy roboco/
|
||||
@uv run pytest -q -x --no-cov
|
||||
|
||||
# Fast pre-submit gate: format-check + lint + types + complexity, NO tests.
|
||||
# This is the command a project points `quality_command` at, so the agent
|
||||
# pre-submit gate (run at i_am_done) executes it in the dev's workspace and
|
||||
# catches lint/type/complexity at the desk. The test suite stays on CI.
|
||||
.PHONY: gate
|
||||
gate:
|
||||
@uv run ruff format --check .
|
||||
@uv run ruff check .
|
||||
@uv run mypy roboco/
|
||||
@uv run xenon --max-absolute B --max-modules A --max-average A roboco/
|
||||
|
||||
# Run all analysis tools
|
||||
.PHONY: analysis
|
||||
analysis: deptry
|
||||
|
||||
Reference in New Issue
Block a user