-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
71 lines (65 loc) · 1.73 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
---
ci:
autoupdate_schedule: monthly
# format compatible with release-please
autoupdate_commit_msg: "chore: pre-commit autoupdate"
autofix_commit_msg: |
chore: auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
skip:
- uv-lock # will make problems during release please PRs
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- id: fix-byte-order-marker
- id: check-merge-conflict
- id: check-added-large-files
- id: debug-statements
language_version: python3
- repo: https://github.com/crate-ci/typos
rev: v1.29.4
hooks:
- id: typos
- repo: https://github.com/jackdewinter/pymarkdown
rev: v0.9.26
hooks:
- id: pymarkdown
args:
- -c
- .pymarkdown.json
- scan
exclude: CHANGELOG.md # is autogenerated
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.21
hooks:
- id: mdformat
exclude: CHANGELOG.md # is autogenerated
- repo: https://github.com/pycqa/pylint
rev: v3.3.3
hooks:
- id: pylint
pass_filenames: false
entry: pylint lib tests
args:
- --output-format=colorized
additional_dependencies:
- .
- ansible-core>=2.11.0
- rich
- pytest
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.8.6"
hooks:
- id: ruff
args:
- --fix
- --exit-non-zero-on-fix
- id: ruff-format
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.5.14
hooks:
- id: uv-lock