-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
35 lines (35 loc) · 951 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
35 lines (35 loc) · 951 Bytes
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
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.0.1
hooks:
- id: check-merge-conflict
- id: trailing-whitespace
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.5.1
hooks:
- id: check-github-workflows
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
# because pre-commit invokes flake8 directly on files, the exclude in
# `.flake8` config does not apply and the files must be excluded from the hook
exclude: ^migrations/.*
additional_dependencies: ['flake8-bugbear==21.4.3']
- repo: https://github.com/python/black
rev: 21.9b0
hooks:
- id: black
- repo: https://github.com/timothycrosley/isort
rev: 5.9.3
hooks:
- id: isort
- repo: https://github.com/asottile/pyupgrade
rev: v2.29.0
hooks:
- id: pyupgrade
args: ["--py36-plus"]