-
Notifications
You must be signed in to change notification settings - Fork 16
/
.pre-commit-config.yaml
53 lines (48 loc) · 1.57 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
repos:
# Standard pre-commit hooks
- 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
# Black config (Python formatter)
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
exclude: ^(councilmatic_core/migrations/)
# Flake8 config (Python linter)
# See ./.flake8 for additional configs
- repo: https://github.com/pycqa/flake8
rev: "9f60881"
hooks:
- id: flake8
args: [--config=.flake8]
# DjHTML config (Django template indenter)
- repo: https://github.com/rtts/djhtml
rev: v1.5.1
hooks:
- id: djhtml
# Indent only HTML files in template directories
files: .*/templates/.*\.html$
args: [--tabwidth=2]
# Prettier config (Javascript formatter)
# See ./.prettierjson.rc for additional configs
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.1
hooks:
- id: prettier
exclude: ^(councilmatic_core/static/js/lib/|councilmatic_core/static/css/bootstrap|councilmatic_core/templates/)
files: \.(js|ts|jsx|tsx|css|less|json|markdown|md|yaml|yml)$
# Eslint config (Javascript linter)
# See ./.eslintrc.js for additional configs
- repo: https://github.com/pre-commit/mirrors-eslint
rev: "1f7d592"
hooks:
- id: eslint
exclude: ^(councilmatic_core/static/js/lib/)
additional_dependencies: