-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
81 lines (80 loc) · 2.21 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
ci:
skip: [export-requirements, hadolint-docker]
autofix_commit_msg: 'refactor: `pre-commit.ci` auto fix'
autofix_prs: true
autoupdate_commit_msg: 'refactor: `pre-commit.ci` auto update'
repos:
- repo: https://github.com/humitos/mirrors-autoflake.git
rev: v1.1
hooks:
- id: autoflake
args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable']
- repo: https://github.com/pycqa/isort
rev: 5.9.3
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 21.9b0
hooks:
- id: black
language_version: python3
- repo: https://github.com/life4/flakehell
rev: v.0.8.0
hooks:
- id: flakehell
exclude: ^docs|examples|tests
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-toml
- id: debug-statements
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.910
hooks:
- id: mypy
files: ^dotify
additional_dependencies: [types-all]
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.19.0
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/jorisroovers/gitlint
rev: v0.15.1
hooks:
- id: gitlint
stages: [commit-msg]
args: [--ignore=B6, --msg-filename]
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 2.3.54
hooks:
- id: editorconfig-checker
- repo: https://github.com/jendrikseipp/vulture
rev: v2.3
hooks:
- id: vulture
- repo: https://github.com/tox-dev/tox-ini-fmt
rev: 0.5.1
hooks:
- id: tox-ini-fmt
- repo: local
hooks:
- id: export-requirements
name: export-requirements
language: system
pass_filenames: false
entry: poetry export --without-hashes -o requirements.txt
files: ^(pyproject.toml|poetry.lock)$
- repo: https://github.com/hadolint/hadolint
rev: v2.7.0
hooks:
- id: hadolint-docker
args: ['--ignore', 'DL3006']
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes