-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.pre-commit-config.yaml
81 lines (81 loc) · 2.32 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
repos:
- repo: local
hooks:
- id: no-mark-only-this
name: No @pytest.mark.only_this
description: This hook prevents tests marked with @pytest.mark.only_this
entry: "@pytest.mark.only_this"
language: pygrep
types: [python]
- id: no-print
name: No print
description: This hook prevents print function calls
entry: "print\\((?!.*allow-print)"
language: pygrep
types: [python]
- repo: https://github.com/ambv/black
rev: 20.8b1
hooks:
- id: black
language_version: python3.9
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.4.2
hooks:
- id: isort
- repo: https://github.com/chewse/pre-commit-mirrors-pydocstyle
rev: v2.1.1
hooks:
- id: pydocstyle
args: ["--add-select=D213,D404", "--ignore=D202,D212,D406,D407,D203"]
exclude: "^test|^example"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.790
hooks:
- id: mypy
exclude: "^example|conf.py$"
additional_dependencies:
- "sqlalchemy-stubs"
- repo: https://github.com/pre-commit/mirrors-pylint
rev: "v2.6.0"
hooks:
- id: pylint
exclude: "^example|conf.py$"
- repo: https://github.com/prettier/pre-commit
rev: "v2.1.2"
hooks:
- exclude: "^docs.*.yaml$"
id: prettier
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-docstring-first
exclude: ".*\/dist\/.*"
- id: check-merge-conflict
- id: check-json
- id: check-yaml
exclude: "^docs/"
- id: check-toml
- id: debug-statements
- id: name-tests-test
args: ["--django"]
exclude: "(\/helpers.py$)|(^tests/production)"
- id: trailing-whitespace
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.9
hooks:
- id: forbid-crlf
- id: remove-crlf
- id: forbid-tabs
- id: remove-tabs
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.0.11
hooks:
- id: markdownlint-cli2
language_version: system
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.2.1"
hooks:
- exclude: "^docs/|.vscode|.ts$"
id: prettier