-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
125 lines (125 loc) · 3.33 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
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/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.269
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
exclude: ^docs|tests
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
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-ast
- 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
exclude: \.(yml|yaml)$
- id: check-yaml
- id: check-json
- id: check-toml
- id: debug-statements
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.3.0
hooks:
- id: mypy
files: ^src
additional_dependencies: [types-all]
- repo: https://github.com/commitizen-tools/commitizen
rev: 3.2.2
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.1
hooks:
- id: editorconfig-checker
- repo: https://github.com/jendrikseipp/vulture
rev: v2.7
hooks:
- id: vulture
- 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.23.0
hooks:
- id: check-github-workflows
- id: check-renovate
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.1
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: 0.11.1
hooks:
- id: pyproject-fmt
args: [--indent, '2']
- repo: https://github.com/google/yamlfmt
rev: v0.9.0
hooks:
- id: yamlfmt
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.0
hooks:
- id: nbqa-black
- id: nbqa-check-ast
- id: nbqa-ruff
- id: nbqa-isort
- id: nbqa-mypy
- repo: https://github.com/roy-ht/pre-commit-jupyter
rev: v1.2.1
hooks:
- id: jupyter-notebook-cleanup
args:
- --remove-kernel-metadata
- repo: https://github.com/python-poetry/poetry
rev: 1.5.0
hooks:
- id: poetry-check
- id: poetry-lock
args: [--check]
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes