-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
51 lines (46 loc) · 1.31 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
exclude: ^(protos/|.*/migrations/|.venv/|.git/|node_modules/|.*__pycache__/)
repos:
- repo: https://github.com/PyCQA/isort
rev: 5.9.3
hooks:
- id: isort
language_version: python3.9
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
language_version: python3.9
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
types: [python]
exclude: ^atoka/settings/
language_version: python3.9
additional_dependencies: [tryceratops==1.0.1]
- repo: https://github.com/asottile/pyupgrade
rev: v2.10.1
hooks:
- id: pyupgrade
args: [--py39-plus, --keep-percent-format]
- repo: https://github.com/awebdeveloper/pre-commit-prettier
rev: 'e68027625238555c292b85e124497842d16ebb2d'
hooks:
- id: prettier
files: '\.tsx?$'
additional_dependencies: ['[email protected]']
- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'v7.18.0'
hooks:
- id: eslint
exclude: '(.py$)|(.less$)|(.md$)|(.html)|(.json)|(.yaml)'
files: '^ts/src/.*'
types: [file]
args: ['--config','ts/.eslintrc.json', '--fix']
additional_dependencies: