-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
80 lines (72 loc) · 2.12 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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-toml
- id: check-merge-conflict
- repo: https://github.com/asottile/pyupgrade
rev: 32151ac97cbfd7f9dcd22e49516fb32266db45b4 # v3.16.0
hooks:
- id: pyupgrade
name: Rewrite Code to be Py3.10+
args: [
--py310-plus,
]
exclude: src/dooti/version.py
- repo: https://github.com/PyCQA/isort
rev: c235f5e450b4b84e58d114ed4c589cbf454175a3 # 5.13.2
hooks:
- id: isort
args: [
--py 310,
]
exclude: src/dooti/version.py
- repo: https://github.com/psf/black
rev: b965c2a5026f8ba399283ba3e01898b012853c79 # 24.8.0
hooks:
- id: black
exclude: src/dooti/version.py
- repo: https://github.com/adamchainz/blacken-docs
rev: 4c97c4a0d921007af6fefae92d8447cfbf63720b # 1.18.0
hooks:
- id: blacken-docs
args: [--skip-errors]
files: ^(docs/.*\.rst|src/dooti/.*\.py)$
additional_dependencies:
- black==24.8.0
- repo: local
hooks:
- id: lint-src
name: pylint
entry: pylint
language: system
types: [python]
require_serial: true
pass_filenames: false
args:
[
"-rn", # Only display messages
"-sn", # Don't display the score
"src/",
"noxfile.py",
]
- repo: https://github.com/rstcheck/rstcheck
rev: f30c4d170a36ea3812bceb5f33004afc213bd797 # v6.2.4
hooks:
- id: rstcheck
additional_dependencies:
- 'sphinx'
- 'toml'
- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: ff671d6a030a3141634793e6d1e8909ab6091830 # v1.0.0
hooks:
- id: sphinx-lint
- repo: https://github.com/Mateusz-Grzelinski/actionlint-py
rev: 27445053da613c660ed5895d9616662059a53ca7 # v1.7.3.17
hooks:
- id: actionlint
additional_dependencies:
- shellcheck-py==0.10.0.1