-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
100 lines (99 loc) · 2.76 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- id: fix-byte-order-marker
- id: check-merge-conflict
- id: check-builtin-literals
- id: check-case-conflict
- id: check-json
- id: pretty-format-json
args: [--autofix, --no-sort-keys]
exclude: 'dub\.json$'
- id: check-yaml
- id: sort-simple-yaml
- id: check-xml
- id: check-ast
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
exclude: '^.*\.j2$'
- id: check-toml
- id: check-added-large-files
- id: check-symlinks
- id: destroyed-symlinks
- id: detect-private-key
- id: fix-encoding-pragma
args: [--remove]
- id: no-commit-to-branch
args: [--branch, master]
- id: requirements-txt-fixer
- repo: https://github.com/pre-commit-ci/pre-commit-ci-config
rev: v1.5.1
hooks:
- id: check-pre-commit-ci-config
- repo: https://github.com/pre-commit/pre-commit
rev: v2.18.1
hooks:
- id: validate_manifest
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.0.1
hooks:
- id: reorder-python-imports
args: [--py39-plus]
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.2.2
hooks:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
rev: v2.32.0
hooks:
- id: pyupgrade
args: [--py39-plus]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
hooks:
- id: python-check-blanket-noqa
- id: python-check-blanket-type-ignore
- id: python-check-mock-methods
- id: python-no-eval
- id: python-no-log-warn
- id: python-use-type-annotations
- id: text-unicode-replacement-char
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.20.1
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.14.2
hooks:
- id: check-github-workflows
- id: check-github-actions
- id: check-azure-pipelines
- id: check-readthedocs
- id: check-travis
- repo: https://github.com/AleksaC/hadolint-py
rev: v2.10.0
hooks:
- id: hadolint
args:
- '--ignore'
- 'DL3059'
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.8.0.4
hooks:
- id: shellcheck
args:
- "--exclude=1071,1090,1091,2001"
- repo: https://github.com/asottile/yesqa
rev: v1.3.0
hooks:
- id: yesqa
ci:
autofix_prs: false
autoupdate_commit_msg: 'chore(pre-commit): bump repositories'