-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.pre-commit-config.yaml
35 lines (35 loc) · 995 Bytes
/
.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
exclude: .*?/migrations/.*?
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.0.0 # Use the ref you want to point at
hooks:
- id: flake8
additional_dependencies: [flake8-tidy-imports, flake8-mutable]
args: [--count, --show-source]
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: check-yaml
- id: double-quote-string-fixer
- repo: https://github.com/asottile/pyupgrade
rev: v1.25.1
hooks:
- id: pyupgrade
args: [--py36-plus]
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.4.4
hooks:
- id: autopep8
- repo: https://github.com/Lucas-C/pre-commit-hooks-bandit
sha: v1.0.4
hooks:
- id: python-bandit-vulnerability-check
- repo: [email protected]:macisamuele/language-formatters-pre-commit-hooks
rev: v1.3.2
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
- repo: https://github.com/johnfraney/flake8-markdown
rev: v0.2.0
hooks:
- id: flake8-markdown