-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
112 lines (96 loc) · 2.91 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
default_language_version:
python: python3.10
# Only commit is installed by default: https://pre-commit.com/#pre-commit-install
# Pending rename of pre-push from: https://github.com/pre-commit/pre-commit/issues/2732
default_install_hook_types: ["commit-msg", "pre-commit"]
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.1.0
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.5.18
hooks:
- id: uv-lock
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: "3.0.3"
hooks:
- id: editorconfig-checker
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: check-vcs-permalinks
- id: detect-private-key
- id: check-case-conflict
- id: check-symlinks
- id: destroyed-symlinks
- id: check-toml
- id: check-yaml
args: [--allow-multiple-documents]
- id: end-of-file-fixer
types: [text]
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
types: [text]
- id: mixed-line-ending
- id: fix-byte-order-marker
- id: fix-encoding-pragma
args: [--remove]
- id: debug-statements
types: [python]
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.31.0
hooks:
- id: check-github-workflows
types: [yaml]
- repo: https://github.com/sirosen/texthooks
rev: 0.6.8
hooks:
- id: fix-smartquotes
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.10.0-2
hooks:
- id: shfmt
- repo: https://github.com/pappasam/toml-sort
rev: "v0.24.2"
hooks:
- id: toml-sort
args: [--in-place]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
types_or: [html, javascript, yaml, json, markdown]
- repo: local
hooks:
- id: docformatter
name: docformatter
language: system
entry: uv run docformatter --in-place --wrap-summaries=99 --wrap-descriptions=99
types_or: [python, pyi, jupyter]
- id: ruff-lint
name: ruff linter
entry: uv run ruff check --fix --exit-non-zero-on-fix
types_or: [python, pyi, jupyter]
language: system
- id: ruff-format
name: ruff format
entry: uv run ruff format
types_or: [python, pyi, jupyter]
language: system
- id: wemake-python-styleguide
name: wemake-python-styleguide
entry: uv run flake8
types_or: [python, jupyter]
language: system
- id: basedpyright
name: basedpyright
entry: uv run basedpyright
types_or: [python, pyi, jupyter]
language: system