-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
76 lines (75 loc) · 1.83 KB
/
.pre-commit-config.yaml
File metadata and controls
76 lines (75 loc) · 1.83 KB
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
repos:
- repo: local
hooks:
- id: black
name: black
entry: black
language: system
types: [python]
require_serial: true
- id: isort
name: isort
entry: isort
language: system
types: [python]
require_serial: true
- id: flake8
name: flake8
entry: flake8
language: system
types: [python]
require_serial: true
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
require_serial: true
- id: mypy
name: mypy
entry: mypy
language: system
types: [python]
require_serial: true
- id: yesqa
name: yesqa
entry: yesqa
language: system
types: [python]
- id: pyupgrade
name: pyupgrade
entry: pyupgrade
language: system
types: [python]
args: [--py310-plus]
- id: tomlsort
name: tomlsort
entry: toml-sort
language: system
types: [toml]
args: [--in-place]
exclude: ^uv.lock$
- id: uv-lock
name: uv-lock
entry: uv lock
args: [--check]
language: system
files: ^(uv\.lock|pyproject\.toml)$
pass_filenames: false
require_serial: true
- repo: https://github.com/Lucas-C/pre-commit-hooks-markup
rev: v1.0.1
hooks:
- id: rst-linter
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: check-merge-conflict
- id: mixed-line-ending
args: [--fix=lf]
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3
hooks:
- id: yamlfmt
args: [--mapping, '2', --sequence, '4', --offset, '0', --implicit_start]