-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
93 lines (81 loc) · 2.2 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
---
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-executables-have-shebangs
- id: mixed-line-ending
- id: check-added-large-files
- id: check-merge-conflict
- id: detect-private-key
- id: check-docstring-first
- id: check-toml
- id: check-yaml
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.3
hooks:
- id: check-github-workflows
name: validate github workflows
args: ["--verbose"]
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 38.107.0
hooks:
- id: renovate-config-validator
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
- id: python-check-blanket-type-ignore
- id: python-check-mock-methods
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal
- repo: https://github.com/PyCQA/doc8
rev: v1.1.1
hooks:
- id: doc8
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py311-plus]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.6
hooks:
- id: shellcheck
- repo: local
hooks:
- id: pyproject.toml
name: validate pyproject.toml
language: system
entry: poetry check
files: 'pyproject\.toml'
pass_filenames: false
- id: ruff format
name: ruff format
language: system
entry: poetry run ruff format
types: [python]
pass_filenames: true
- id: ruff check
name: ruff check
language: system
entry: poetry run ruff check --fix
types: [python]
pass_filenames: true
- id: deal lint
name: deal lint
language: system
entry: poetry run python3 -m deal lint
types: [python]
- id: mypy
name: mypy
language: system
entry: poetry run mypy
types: [python]