forked from nv-tlabs/kimodo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
50 lines (46 loc) · 1.25 KB
/
.pre-commit-config.yaml
File metadata and controls
50 lines (46 loc) · 1.25 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
repos:
# code formatting
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.4
hooks:
- id: ruff
name: sort imports with ruff
args: [--select, I, --fix]
- id: ruff-format
name: format with ruff
# docstring formatting
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.7
hooks:
- id: docformatter
args:
[
--in-place,
--wrap-summaries=100,
--wrap-descriptions=100,
--style=sphinx,
]
# yaml formatting
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.6
hooks:
- id: prettier
types: [yaml]
exclude: |
(?x)^(
environment\.yaml$ |
\.gitlab-ci\.yml$ |
\.k8s/.*\.(ya?ml)$
)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace # Trims trailing whitespace.
- id: end-of-file-fixer # Makes sure files end in a newline and only a newline.
- id: check-yaml # Attempts to load all yaml files to verify syntax.
exclude: |
(?x)^(
\.gitlab-ci\.yml$ |
\.k8s/.*\.(ya?ml)$
)
exclude: "checkpoints/.*"