-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
102 lines (94 loc) · 2.62 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
default_install_hook_types: [pre-commit, commit-msg]
default_language_version:
python: python3.9
ci:
skip: [shelf-commit-msg, compress-hook]
autofix_commit_msg: |
🚧 [pre-commit.ci] auto fixes from pre-commit.com hooks
autofix_prs: true
autoupdate_schedule: weekly
autoupdate_commit_msg: |
🚧 [pre-commit.ci] pre-commit autoupdate
submodules: false
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
hooks:
- id: pyupgrade
args: ["--py38-plus", "--keep-runtime-typing"]
stages: [pre-commit]
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
stages: [pre-commit]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.2
hooks:
- id: ruff
args: ["--fix"]
stages: [pre-commit]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: fix-byte-order-marker
stages: [pre-commit]
- id: trailing-whitespace
stages: [pre-commit]
exclude: ".bumpversion.cfg"
- id: end-of-file-fixer
stages: [pre-commit]
- id: check-yaml
stages: [pre-commit]
args: ["--unsafe"]
- id: check-toml
stages: [pre-commit]
- id: requirements-txt-fixer
stages: [pre-commit]
- repo: https://github.com/korawica/clishelf
rev: v0.2.1
hooks:
- id: shelf-commit-msg
stages: [commit-msg]
# - repo: https://github.com/pre-commit/mirrors-prettier
# rev: v4.0.0-alpha.8
# hooks:
# - id: prettier
# types_or:
# - toml
# - css
# - json
# - json5
# - yaml
# - markdown
# additional_dependencies:
# - prettier
# - prettier-plugin-toml
# minimum_pre_commit_version: 2.9.0
# exclude: ^(locale|CHANGELOG)
# stages: [commit]
# - repo: https://github.com/tcort/markdown-link-check
# rev: v3.11.2
# hooks:
# - id: markdown-link-check
# name: markdown-link-check
# files: \.md$
# args: ["-q", "--config", ".markdown-link-check.json"]
# stages: [commit]
- repo: local
hooks:
- id: compress-hook
name: compress files on assets
stages: [pre-commit]
types: [python]
entry: venv/Scripts/python.exe scripts/compress.py
language: system
always_run: true
# - id: auto-update-date
# name: auto update date
# stages: [commit]
# types: [python]
# files: \.md$
# entry: venv/Scripts/python.exe scripts/auto_update.py
# language: system
# always_run: true