-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
63 lines (55 loc) · 1.44 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
default_language_version:
python: "3.12"
default_stages:
- pre-commit
- pre-push
repos:
# General hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-toml
- id: check-yaml
- id: check-case-conflict
- id: check-merge-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: detect-private-key
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies:
- "tomli"
args:
- --toml=./pyproject.toml
# Python specific
# Commitizen
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.2.2
hooks:
- id: commitizen
- repo: https://github.com/provinzkraut/unasyncd
rev: v0.8.1
hooks:
- id: unasyncd
additional_dependencies: ["ruff"]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.9.6
hooks:
- id: ruff
args: [--config=./pyproject.toml, --fix, --exit-non-zero-on-fix]
- id: ruff-format
types_or: [python, pyi]
- repo: local
hooks:
- id: vulture
name: vulture
entry: nox -rs vulture --
language: python
types: [python]
require_serial: true
additional_dependencies: [nox]