Skip to content

Commit 30bfe73

Browse files
committed
feat(cli): add check-all command for comprehensive development validation
- Add check-all command that runs both pre-commit and type checking - Ensures local development catches the same issues as CI - Provides single command for complete code validation - Helps prevent type errors from reaching GitHub Actions
1 parent 0b11c87 commit 30bfe73

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tux/cli/dev.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,15 @@ def type_check() -> int:
3838
def check() -> int:
3939
"""Run pre-commit checks."""
4040
return run_command(["pre-commit", "run", "--all-files"])
41+
42+
43+
@command_registration_decorator(dev_group, name="check-all")
44+
def check_all() -> int:
45+
"""Run all development checks (pre-commit + type checking)."""
46+
# Run pre-commit first
47+
pre_commit_result = run_command(["pre-commit", "run", "--all-files"])
48+
if pre_commit_result != 0:
49+
return pre_commit_result
50+
51+
# Then run type checking
52+
return run_command(["pyright"])

0 commit comments

Comments
 (0)