-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
62 lines (62 loc) · 1.75 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
default_language_version:
node: system
python: python3.8
repos:
- repo: https://github.com/python/black
rev: 20.8b1
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.7.0
hooks:
- id: isort
- repo: https://gitlab.com/pycqa/flake8
# flake8 config is in setup.cfg
rev: 3.8.3
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v6.8.0
hooks:
- id: eslint
additional_dependencies:
- eslint@7.2.0
- eslint-config-airbnb@18.2.1
- eslint-config-prettier@8.3.0
- eslint-config-torchbox@0.4.0
- eslint-plugin-import@2.23.4
- eslint-plugin-jsx-a11y@6.4.1
- eslint-plugin-react@7.24.0
- eslint-plugin-react-hooks@4.2.0
- '@babel/core@7.14.2'
- '@babel/preset-env@7.14.2'
- '@babel/preset-react@7.10.1'
- babel-eslint@10.0.3
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.3.2
hooks:
- id: prettier
types_or: [markdown, css, scss, javascript, json, yaml, vue]
- repo: https://github.com/awebdeveloper/pre-commit-stylelint
rev: c4c991cd38b0218735858716b09924f8b20e3812
hooks:
- id: stylelint
files: \.(scss|vue)$
additional_dependencies:
- stylelint@13.13.1
- stylelint-config-torchbox@1.0.0
- repo: https://github.com/Yelp/detect-secrets
rev: v0.14.3
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
exclude: >
(?x)^(
.*/tests/.*|
package-lock.json|
poetry.lock
)$
- repo: https://github.com/rtts/djhtml
rev: v1.4.11
hooks:
- id: djhtml