forked from serious-scaffold/ss-python
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
123 lines (123 loc) · 3.13 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
default_install_hook_types:
- post-checkout
- post-merge
- post-rewrite
- pre-push
default_stages:
- manual
- pre-push
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-docstring-first
- id: check-merge-conflict
args:
- '--assume-in-merge'
- id: check-toml
- id: check-xml
- id: check-yaml
- id: end-of-file-fixer
- id: forbid-new-submodules
- id: mixed-line-ending
- id: name-tests-test
- id: no-commit-to-branch
stages:
- pre-push
- id: sort-simple-yaml
files: .pre-commit-config.yaml
- id: trailing-whitespace
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 39.42.4
hooks:
- id: renovate-config-validator
- repo: local
hooks:
- id: pdm-sync
name: pdm-sync
entry: pdm sync
language: python
stages:
- post-checkout
- post-merge
- post-rewrite
always_run: true
pass_filenames: false
- id: pdm-dev-sync
name: pdm-dev-sync
entry: pdm sync --lockfile pdm.dev.lock
language: python
stages:
- post-checkout
- post-merge
- post-rewrite
always_run: true
pass_filenames: false
- id: pdm-lock-check
name: pdm-lock-check
entry: pdm lock --check
language: python
files: ^pyproject.toml$
pass_filenames: false
- id: pdm-dev-lock-check
name: pdm-dev-lock-check
entry: pdm lock --check --lockfile pdm.dev.lock
language: python
files: ^pyproject.toml$
pass_filenames: false
- id: mypy
name: mypy
entry: pdm run python -m mypy
language: system
exclude: ^template/.*
types_or:
- python
- pyi
require_serial: true
- id: ruff
name: ruff
entry: ruff check --force-exclude
language: system
types_or:
- python
- pyi
require_serial: true
- id: ruff-format
name: ruff-format
entry: ruff format --force-exclude
language: system
types_or:
- python
- pyi
require_serial: true
- id: pyproject-fmt
name: pyproject-fmt
entry: pyproject-fmt
language: python
files: '(^|/)pyproject\.toml$'
types:
- toml
- id: codespell
name: codespell
entry: codespell
language: python
types:
- text
- id: check-jsonschema
name: check-jsonschema
entry: make check-jsonschema
language: python
files: (?x)^(
\.github/workflows/[^/]+|
\.gitlab-ci\.yml|
\.gitlab/workflows/[^/]+|
\.readthedocs\.yaml|
\.renovaterc\.json
)$
pass_filenames: false
- id: forbidden-files
name: forbidden files
entry: found Copier update rejection files; review them and remove them
language: fail
files: \.rej$