generated from john/python-template
31 lines
1.0 KiB
YAML
31 lines
1.0 KiB
YAML
# Quality gate for V4.6 [HIGH-06]. `ruff check` is blocking. `ty check` is advisory
|
|
# during release stabilization: it reports its whole-project baseline without failing
|
|
# the commit. Restore it to blocking once that baseline is clear.
|
|
#
|
|
# Both tools are uv-managed dev dependencies and are not on PATH, so each entry must
|
|
# go through `uv run`.
|
|
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: ruff
|
|
name: ruff check
|
|
entry: uv run ruff check
|
|
language: system
|
|
types_or: [python, pyi]
|
|
require_serial: true
|
|
- id: ruff-format
|
|
name: ruff format check
|
|
entry: uv run ruff format --check .
|
|
language: system
|
|
types_or: [python, pyi]
|
|
pass_filenames: false
|
|
require_serial: true
|
|
- id: ty
|
|
name: ty check (advisory)
|
|
entry: python -c "import subprocess, sys; subprocess.run(['uv', 'run', 'ty', 'check']); sys.exit(0)"
|
|
language: system
|
|
types_or: [python, pyi]
|
|
pass_filenames: false
|
|
require_serial: true
|
|
verbose: true
|