-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
95 lines (95 loc) · 2.68 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
ci:
skip: [hadolint-docker]
autofix_commit_msg: 'refactor: `pre-commit.ci` auto fix'
autofix_prs: true
autoupdate_commit_msg: 'ci: `pre-commit.ci` auto update'
repos:
- repo: https://github.com/PyCQA/autoflake
rev: v2.2.1
hooks:
- id: autoflake
args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable']
exclude: ^{{cookiecutter.project_name}}
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
exclude: ^{{cookiecutter.project_name}}
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
language_version: python3
exclude: ^{{cookiecutter.project_name}}
- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
hooks:
- id: codespell
files: \.(py|md)$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
- id: detect-private-key
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
- id: check-toml
- repo: https://github.com/commitizen-tools/commitizen
rev: 3.7.1
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
stages: [commit-msg]
args: [--ignore=B6, --msg-filename]
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 2.7.2
hooks:
- id: editorconfig-checker
- repo: https://github.com/hadolint/hadolint
rev: v2.12.1-beta
hooks:
- id: hadolint-docker
args: ['--ignore', 'DL3006']
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.26.3
hooks:
- id: check-github-workflows
- id: check-renovate
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
hooks:
- id: docformatter
additional_dependencies: [tomli]
exclude: tests
args: [--config, pyproject.toml]
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
hooks:
- id: bandit
additional_dependencies: ["bandit[toml]"]
args: ["-c", "pyproject.toml"]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: 1.1.0
hooks:
- id: pyproject-fmt
args: [--indent, '2']
- repo: https://github.com/python-poetry/poetry
rev: 1.6.0
hooks:
- id: poetry-check
- id: poetry-lock
args: [--check]
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes