tux.cli.dev
¶
Development tools and utilities for Tux.
Functions:
Name | Description |
---|---|
lint | Run linting with Ruff. |
lint_fix | Run linting with Ruff and apply fixes. |
format_code | Format code with Ruff. |
type_check | Check types with Pyright. |
check | Run pre-commit checks. |
check_all | Run all development checks (pre-commit + type checking). |
Functions¶
lint() -> int
¶
lint_fix() -> int
¶
format_code() -> int
¶
type_check() -> int
¶
check() -> int
¶
check_all() -> int
¶
Run all development checks (pre-commit + type checking).
Source code in tux/cli/dev.py
Python
@command_registration_decorator(dev_group, name="check-all")
def check_all() -> int:
"""Run all development checks (pre-commit + type checking)."""
# Run pre-commit first
pre_commit_result = run_command(["pre-commit", "run", "--all-files"])
if pre_commit_result != 0:
return pre_commit_result
# Then run type checking
return run_command(["pyright"])