-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
58 lines (51 loc) · 1.81 KB
/
.pre-commit-config.yaml
File metadata and controls
58 lines (51 loc) · 1.81 KB
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
exclude: (^auditwheel_emscripten/emscripten_tools/)
default_language_version:
python: "3.13"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "3e8a8703264a2f4a69428a0aa4dcb512790b2c8c" # frozen: v6.0.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: "75992aaa40730136014f34227e0135f63fc951b4" # frozen: v3.21.2
hooks:
- id: pyupgrade
args: ["--py312-plus"]
- repo: https://github.com/hadialqattan/pycln
rev: "c722dfaa45d90314cd1ad726bb561894321b278d" # frozen: v2.6.0
hooks:
- id: pycln
args: [--config=pyproject.toml]
stages: [manual]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "0671d8ab202c4ac093b78433ae5baf74f3fc7246" # frozen: v0.15.15
hooks:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.15.0"
hooks:
- id: mypy
exclude: auditwheel_emscripten/emscripten_tools
- repo: https://github.com/koalaman/shellcheck-precommit
rev: 99470f5e12208ff0fb17ab81c3c494f7620a1d8d # frozen: v0.11.0
hooks:
- id: shellcheck
- repo: https://github.com/codespell-project/codespell
rev: "2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a" # frozen: v2.4.2
hooks:
- id: codespell
args: ["-L", "te,slowy,aray,ba,nd,classs,crate,feld,lits"]
- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: "9257c6050c0261b8c57e712f632dc4a8010109a9" # frozen: v1.25.2
hooks:
- id: zizmor
args: ["--pedantic", "--fix=safe"]