-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
99 lines (98 loc) · 2.69 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
repos:
- hooks:
- args:
- --markdown-linebreak-ext=md,markdown
id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-ast
- id: fix-byte-order-marker
- id: check-merge-conflict
- id: debug-statements
- id: detect-private-key
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- args:
- --fix=lf
id: mixed-line-ending
- exclude: ^\.(vscode|devcontainer)/
id: check-json
- args:
- --indent
- '4'
- --autofix
- --no-sort-keys
exclude: ^\.(vscode|devcontainer)/
id: pretty-format-json
- id: check-toml
repo: https://github.com/pre-commit/pre-commit-hooks
rev: 2c9f875913ee60ca25ce70243dc24d5b6415598c
- repo: https://github.com/bwhmather/ssort
rev: 202524364c6ba81752b4fa9c77f16c9ccd5a5e28 # frozen: 0.13.0
hooks:
- id: ssort
- repo: https://github.com/PyCQA/autoflake
rev: 0544741e2b4a22b472d9d93e37d4ea9153820bb1 # frozen: v2.3.1
hooks:
- id: autoflake
- hooks:
- id: black
repo: https://github.com/psf/black
rev: 3702ba224ecffbcec30af640c149f231d90aebdb # frozen: 24.4.2
- hooks:
- id: isort
repo: https://github.com/pycqa/isort
rev: c235f5e450b4b84e58d114ed4c589cbf454175a3
- hooks:
- id: python-no-eval
- id: python-no-log-warn
repo: https://github.com/pre-commit/pygrep-hooks
rev: 3a6eb0fadf60b3cccfd80bad9dbb6fae7e47b316
- hooks:
- id: flynt
repo: https://github.com/ikamensh/flynt
rev: 651c822fdcf45fffcf9743dc755085f32acb65e3
- hooks:
- args:
- --py312-plus
id: pyupgrade
repo: https://github.com/asottile/pyupgrade
rev: 12af25eb252deaaecb6b259df40d01f42e716dc3
- hooks:
- additional_dependencies:
- tomli ; python_version < '3.11'
id: auto-walrus
repo: https://github.com/MarcoGorelli/auto-walrus
rev: ba0661836089a532a710f68713a3e3e53f7f0113 # frozen: 0.3.4
- hooks:
- additional_dependencies:
- tomli ; python_version < '3.11'
id: codespell
repo: https://github.com/codespell-project/codespell
rev: 6e41aba91fb32e9feb741a6258eefeb9c6e4a482
- hooks:
- id: commitizen
repo: https://github.com/commitizen-tools/commitizen
rev: c2bbc92202e9080adcdf8fa2e99c9e4406a1f684 # frozen: v3.26.0
- hooks:
- entry: hatch run types:check
id: mypy
language: system
name: mypy
types:
- python
repo: local
- repo: https://github.com/TotallyNotRobots/check-spdx-header
rev: '2a52cf804e6dedd045e765185382d4f916ae2f3f' # frozen: 0.1.0a2
hooks:
- id: fix-spdx-header
minimum_pre_commit_version: 2.18.0
default_install_hook_types:
- pre-commit
- pre-push
- commit-msg