Something went wrong on our end
Select Git revision
.pre-commit-config.yaml
Forked from
hub / hub
218 commits behind the upstream repository.
-
Andreas Hubel authoredAndreas Hubel authored
.pre-commit-config.yaml 1.65 KiB
exclude: ^.*.min.*|migrations|yarn.lock|venv$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
- id: check-ast
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.0
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://gitlab.com/bmares/check-json5
rev: v1.0.0
hooks:
- id: check-json5
- repo: https://github.com/pdm-project/pdm
rev: 2.20.1
hooks:
- name: check production requirements
id: pdm-export
args: ["-o", "requirements.txt", "--without-hashes", "--prod"]
files: ^pdm.lock$
- repo: https://github.com/pdm-project/pdm
rev: 2.20.1
hooks:
- name: check development requirements
id: pdm-export
args: ["-o", "requirements.dev.txt", "--without-hashes", "--dev"]
files: ^pdm.lock$
- repo: https://github.com/pdm-project/pdm
rev: 2.20.1
hooks:
- id: pdm-lock-check
- repo: https://github.com/djlint/djLint
rev: v1.36.2
hooks:
- id: djlint-reformat-django
- id: djlint-reformat-jinja
- id: djlint-django
- id: djlint-jinja
- repo: local
hooks:
- name: Check for uncreated migrations.
id: migrations-check
language: system
entry: sh -c "pdm manage makemigrations --check --dry-run"
files: "models/.*.py$"
types:
- python
stages:
- pre-commit
- name: prettier
id: prettier
entry: yarn prettier --write --ignore-unknown
language: node
"types": [text]