-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
55 lines (48 loc) · 1.29 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
default_install_hook_types: [pre-commit, commit-msg]
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.15.2
hooks:
- id: pyupgrade
args: ["--py39-plus", "--keep-runtime-typing"]
stages: [commit]
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
stages: [commit]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.2
hooks:
- id: ruff
args: ["--fix"]
stages: [commit]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: end-of-file-fixer
stages: [commit]
- repo: https://github.com/korawica/clishelf
rev: v0.2.4
hooks:
- id: shelf-commit-msg
- repo: local
hooks:
- id: pytest-check
name: PyTest Runner
stages: [commit, push]
types: [python]
entry: venv/Scripts/pytest.exe -v
language: system
pass_filenames: false
always_run: true