Files
gitea-mirror/.pre-commit-config.yaml
T
alex fd88aabe46
Test and coverage / build (push) Failing after 4m23s
feat: Upgrade to uv and Python 3.12
2026-06-27 22:34:50 +03:00

40 lines
1.2 KiB
YAML

repos:
- repo: local
hooks:
- id: ruff-check
name: ruff check
entry: uv run ruff check --fix
language: system
types_or: [python, pyi]
- id: ruff-format
name: ruff format
entry: uv run ruff format
language: system
types_or: [python, pyi]
- id: export-requirements
name: export requirements.txt
entry: uv export --format requirements-txt --no-dev --no-hashes --no-header --no-annotate --frozen --output-file requirements.txt
language: system
pass_filenames: false
files: ^(pyproject\.toml|uv\.lock)$
- id: check-yaml
name: check yaml
entry: uv run check-yaml
language: system
types: [yaml]
- id: end-of-file-fixer
name: end of file fixer
entry: uv run end-of-file-fixer
language: system
types: [text]
- id: trailing-whitespace
name: trailing whitespace
entry: uv run trailing-whitespace-fixer
language: system
types: [text]
- id: check-json
name: check json
entry: uv run check-json
language: system
types: [json]