Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
63 lines (57 loc) · 1.8 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
63 lines (57 loc) · 1.8 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
default_language_version:
python: 'python3.11'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: no-commit-to-branch
name: No commits to master
- id: end-of-file-fixer
name: End-of-file fixer
- id: trailing-whitespace
name: Remove trailing whitespaces
- id: check-toml
name: Check toml
- id: check-yaml
name: Check yaml
- repo: https://github.com/adrienverge/yamllint
rev: v1.38.0
hooks:
- id: yamllint
name: Lint yaml
args: [-d, '{extends: default, rules: {line-length: disable, document-start: disable, truthy: {level: error}, braces: {max-spaces-inside: 1}}}']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.17
hooks:
- id: ruff-check
name: Check Python code
args: [--fix]
- id: ruff-format
name: Format Python code
- repo: https://github.com/astral-sh/ty-pre-commit
rev: v0.0.49
hooks:
- id: ty
name: Type check Python
args:
- --find-links=https://data.pyg.org/whl/torch-2.14.0+cpu.html
- --no-default-groups
- --group=test
- repo: https://github.com/executablebooks/mdformat
rev: 1.0.0
hooks:
- id: mdformat
name: Format Markdown
args: [--number]
additional_dependencies:
- mdformat-gfm
- mdformat_frontmatter
- mdformat_footnote
- repo: https://github.com/rapidsai/pre-commit-hooks
rev: 49d5f7ac8225db3ebd7d0ab3701d6336d3c208ec # v1.6.0
hooks:
- id: verify-copyright
name: Check copyright headers
args: [--fix, --force-spdx, --spdx-license-identifier=Apache-2.0]
files: '(^|/)Makefile$|[.](css|py|pyi|sh)$'
exclude: '^(third_party|vendor)/'