This repository has been archived by the owner on Jun 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
104 lines (99 loc) · 3.12 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
repos:
## system
- repo: https://github.com/asottile/pyupgrade
rev: v2.30.0
hooks:
- id: pyupgrade
args: [--py310-plus]
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.4.0
hooks:
- id: django-upgrade
args: [--target-version, "4.0"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-yaml
# - id: end-of-file-fixer
# - id: trailing-whitespace
- id: debug-statements
- id: mixed-line-ending
- repo: https://github.com/pycqa/doc8
rev: 0.10.1
hooks:
- id: doc8
# TODO: https://github.com/adamchainz/pre-commit-oxipng
#python
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
exclude: .*migrations/.*
name: isort
types: [python]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
name: black
types: [python]
exclude: .*migrations/.*
- repo: https://github.com/flakeheaven/flakeheaven
rev: 1.0.1
hooks:
- id: flakeheaven
name: flakeheaven
exclude: .*migrations/.*
args: [--config=pyproject.toml]
additional_dependencies:
- bandit==1.7.4
- flake8-bugbear==22.4.25
- flake8-bandit==3.0.0
- flake8-builtins==1.5.3
- flake8-eradicate==1.2.1
- flake8-mutable==1.2.0
- pylint==2.13.9
- pylint-celery==0.3
- pylint-django==2.5.3
## frontend
- repo: https://github.com/pre-commit/mirrors-eslint
rev: "v8.17.0"
hooks:
- id: eslint
name: eslint
files: ^frontend/
types_or: [javascript, ts]
args: [--fix]
additional_dependencies:
- "@typescript-eslint/eslint-plugin"
- "@typescript-eslint/parser"
- repo: local
hooks:
- id: tsc
name: tsc
entry: npx tsc --noEmit
files: ^frontend/
language: system
types_or: [javascript, ts]
pass_filenames: false
- repo: https://github.com/thibaudcolas/pre-commit-stylelint
rev: v14.8.1
hooks:
- id: stylelint
name: stylelint
args:
[
--report-needless-disables,
--report-invalid-scope-disables,
--fix,
--allow-empty-input,
]
additional_dependencies:
# stylelint itself needs to be here when using additional_dependencies.