-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
72 lines (72 loc) · 2.05 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
exclude: ".yarn/|yarn.lock|package.json|conf/strings.js"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-builtin-literals
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- id: file-contents-sorter
args: [--ignore-case, --unique]
files: requirements-to-freeze.txt
- repo: local
hooks:
- id: django-check
name: django check
entry: .venv/bin/python manage.py check
pass_filenames: false
language: system
always_run: true
- id: prettier
name: prettier
entry: npx [email protected] --no-semi --write
language: system
types_or: [scss]
require_serial: true
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.22.1
hooks:
- id: django-upgrade
args: [--target-version, "5.1"]
- repo: https://github.com/adamchainz/djade-pre-commit
rev: "1.3.2"
hooks:
- id: djade
args: [--target-version, "5.1"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.8.0"
hooks:
- id: ruff
args: [--unsafe-fixes]
- id: ruff-format
- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.5.0
hooks:
- id: pyproject-fmt
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.23
hooks:
- id: validate-pyproject
- repo: https://github.com/biomejs/pre-commit
rev: "v0.5.0"
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/[email protected]"]
args: [--unsafe]
types_or: [css, javascript, json]
verbose: true
- repo: https://github.com/boidolr/pre-commit-images
rev: v1.8.2
hooks:
- id: optimize-avif
- id: optimize-jpg
- id: optimize-png
- id: optimize-svg
- id: optimize-webp