-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
64 lines (57 loc) · 1.55 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
default_install_hook_types: [pre-commit, commit-msg, pre-push]
default_language_version:
python: python3.9
ci:
skip: [pytest-check, shelf-commit-msg]
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
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.1
hooks:
- id: pyupgrade
args: ["--py39-plus", "--keep-runtime-typing"]
stages: [ pre-commit ]
- repo: https://github.com/psf/black
rev: 25.1.0
hooks:
- id: black
stages: [ pre-commit ]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.4
hooks:
- id: ruff
args:
- --fix
stages: [ pre-commit ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: fix-byte-order-marker
stages: [ pre-commit ]
- id: trailing-whitespace
stages: [ pre-commit ]
- id: end-of-file-fixer
stages: [ pre-commit ]
- id: check-yaml
stages: [ pre-commit ]
args: ["--unsafe"]
- id: check-toml
stages: [ pre-commit ]
- repo: https://github.com/korawica/clishelf
rev: v0.2.16
hooks:
- id: shelf-commit-msg
- repo: local
hooks:
- id: pytest-check
name: pytest runner
stages: [ pre-push ]
entry: pytest -vv
language: python
pass_filenames: false
always_run: true