33 lines
750 B
YAML
33 lines
750 B
YAML
default_language_version:
|
|
python: python3.13
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: check-added-large-files
|
|
args: ["--maxkb=512"]
|
|
- id: check-yaml
|
|
- id: check-toml
|
|
- id: check-docstring-first
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: ruff-format
|
|
name: ruff format
|
|
entry: uv run ruff format .
|
|
language: system
|
|
types: [python]
|
|
|
|
- id: ruff-check
|
|
name: ruff check
|
|
entry: uv run ruff check --fix .
|
|
language: system
|
|
types: [python]
|
|
|
|
- id: pytest
|
|
name: pytest
|
|
entry: uv run pytest tests/ -v
|
|
language: system
|
|
pass_filenames: false
|
|
stages: [pre-push] |