-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
93 lines (82 loc) · 2.46 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
default_language_version:
node: 20.8.0
python: python3.11
# 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: v3.29.0
hooks:
- id: commitizen
stages: [commit-msg]
- 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.29.3
hooks:
- id: check-github-workflows
types: [yaml]
- repo: https://github.com/sirosen/texthooks
rev: 0.6.7
hooks:
- id: fix-smartquotes
- repo: https://github.com/hakancelik96/unimport
rev: 1.2.1
hooks:
- id: unimport
types: [python]
args:
- --ignore-init
- --include-star-import
- --gitignore
# - repo: https://github.com/editorconfig-checker/editorconfig-checker.python
# rev: 2.7.2
# hooks:
# - id: editorconfig-checker
- repo: https://github.com/pappasam/toml-sort
rev: "v0.23.1"
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, shell, yaml, json]
# - repo: https://github.com/PyCQA/docformatter
# rev: v1.7.5
# hooks:
# - id: docformatter
# types: [python]
# args: [--in-place, --wrap-summaries=99, --wrap-descriptions=99]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.6.2"
hooks:
- id: ruff
name: ruff linter
args: [--fix, --exit-non-zero-on-fix]
types_or: [python, pyi, jupyter]
- id: ruff-format
types_or: [python, pyi, jupyter]