-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.pre-commit-config.yaml
49 lines (48 loc) · 1.19 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
default_language_version:
node: system
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
- id: check-yaml
- id: check-toml
- id: trailing-whitespace
- id: check-merge-conflict
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-json
- id: debug-statements
- id: detect-private-key
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
- repo: https://github.com/python/black
rev: 24.3.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v7.26.0
hooks:
- id: eslint
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.3.2
hooks:
- id: prettier
- repo: local
hooks:
- id: djlint-templates
name: Lint project templates
language: python
files: tbxforms/.*\.html$
entry: djlint
- id: djlint-snapshots
name: Check snapshot formatting
language: python
files: tests/.*\.html$
entry: djlint --check