-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
80 lines (73 loc) · 2.37 KB
/
.pre-commit-config.yaml
File metadata and controls
80 lines (73 loc) · 2.37 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
76
77
78
79
80
exclude: '^3rd_party/'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files # prevents giant files from being committed.
- id: check-case-conflict # checks for files that would conflict in case-insensitive filesystems.
- id: check-merge-conflict # checks for files that contain merge conflict strings.
- id: check-yaml # checks yaml files for parseable syntax.
- id: end-of-file-fixer # ensures that a file is either empty, or ends with one newline.
- id: fix-byte-order-marker # removes utf-8 byte order marker.
- id: mixed-line-ending # replaces or checks mixed line ending.
- id: trailing-whitespace # trims trailing whitespace.
- id: check-json
exclude: /README\.rst$|\.pot?$|^\.vscode/.*\.json$
- id: pretty-format-json
exclude: /README\.rst$|\.pot?$|^\.vscode/.*\.json$|\.ipynb$
args: [--no-sort-keys, --autofix]
- repo: https://github.com/kynan/nbstripout
rev: 0.8.2
hooks:
- id: nbstripout
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/efrecon/pre-commit-hook-lxml
rev: v0.1.4
hooks:
- id: format-xml
- repo: https://github.com/jsh9/pydoclint
rev: 0.8.3
hooks:
- id: pydoclint
args:
[
--style=google,
--arg-type-hints-in-docstring=false,
--skip-checking-raises=true,
--allow-init-docstring=true,
--check-return-types=false,
--exclude=lead/training/rfs.py,
--check-yield-types=false,
lead/,
]
pass_filenames: false
always_run: true
types: [python]
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
hooks:
- id: mdformat
additional_dependencies:
- mdformat-gfm
- mdformat-black
pass_filenames: false
always_run: true
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.21.1"
hooks:
- id: pyproject-fmt
pass_filenames: false
always_run: true
args:
[
pyproject.toml
]
- repo: https://github.com/asottile/add-trailing-comma
rev: v4.0.0
hooks:
- id: add-trailing-comma