blob: 51ca187eed5f5bba92f15f88c1d3ac428f5f819c (
plain)
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
|
default_language_version:
python: python3.7
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v2.4.0"
hooks:
# General file-formatting
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: check-json
- id: check-toml
# Python-related
- id: debug-statements
- id: name-tests-test
args: ["--django"] # Required to match on test*.py
# Git-related
- id: check-merge-conflict
- repo: https://gitlab.com/pycqa/flake8
rev: "3.7.9"
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear # Finds common application design anti-patterns
- repo: https://github.com/pre-commit/pygrep-hooks
rev: "v1.4.2"
hooks:
- id: python-check-blanket-noqa
- repo: https://github.com/pre-commit/mirrors-isort
rev: "v4.3.21"
hooks:
- id: isort
additional_dependencies:
- toml # Required for loading config from pyproject.toml
- repo: https://github.com/ambv/black
rev: "19.10b0"
hooks:
- id: black
|