mirror of
https://github.com/FuzzyGrim/Yamtrack.git
synced 2026-06-27 22:35:55 +00:00
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: check-migrations
|
|
name: check-migrations
|
|
entry: uv run python src/manage.py makemigrations --check
|
|
language: system
|
|
pass_filenames: false
|
|
always_run: true
|
|
- id: uv-lock-check
|
|
name: uv-lock-check
|
|
entry: uv lock --check
|
|
language: system
|
|
pass_filenames: false
|
|
- id: django-upgrade
|
|
name: django-upgrade
|
|
entry: uv run django-upgrade
|
|
language: system
|
|
types: [python]
|
|
- id: ruff
|
|
name: ruff
|
|
entry: uv run ruff check --fix
|
|
language: system
|
|
types: [python]
|
|
require_serial: true
|
|
- id: ruff-format
|
|
name: ruff-format
|
|
entry: uv run ruff format
|
|
language: system
|
|
types: [python]
|
|
require_serial: true
|
|
- id: djlint-lint
|
|
name: djlint-lint
|
|
entry: uv run djlint --lint
|
|
language: system
|
|
types: [html]
|
|
require_serial: true
|
|
- id: djlint-reformat
|
|
name: djlint-reformat
|
|
entry: uv run djlint --reformat
|
|
language: system
|
|
types: [html]
|
|
require_serial: true
|