-
Notifications
You must be signed in to change notification settings - Fork 16
/
.pre-commit-config.yaml
43 lines (38 loc) · 1.21 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
exclude: ^(chicago/migrations/)
- repo: https://github.com/pycqa/flake8
rev: "9f60881"
hooks:
- id: flake8
args: [--config=.flake8]
- repo: https://github.com/rtts/djhtml
rev: v1.5.1 # replace with the latest tag on GitHub
hooks:
- id: djhtml
# Indent only HTML files in template directories
files: .*/templates/.*\.html$
args: [--tabwidth=2] # tabs should be 2 spaces in Django templates
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.1
hooks:
- id: prettier
exclude: ^(chicago/static/js/lib/|chicago/static/css/bootstrap|chicago/templates/)
files: \.(js|ts|jsx|tsx|css|less|json|markdown|md|yaml|yml)$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: "1f7d592"
hooks:
- id: eslint
additional_dependencies: