-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
70 lines (63 loc) · 1.76 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
70 lines (63 loc) · 1.76 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
repos:
- repo: local
hooks:
- id: trailing-whitespace
name: Trailing whitespace
entry: trailing-whitespace-fixer
language: system
types: [python]
- repo: local
hooks:
- id: check-added-large-files
name: Check for added large files
description: Prevent giant files from being committed
entry: check-added-large-files
language: python
args: ["--maxkb=1024"]
- repo: local
hooks:
- id: check-merge-conflict
name: Check merge conflict
description: Prevent unresolve conflict
entry: check-merge-conflict
language: system
args: [--assume-in-merge]
- repo: local
hooks:
- id: ruff-format
name: ruff format
description: ruff format
entry: ruff format
language: python
files: \.(py)$
types: [file, python]
args: [--config=pyproject.toml, --force-exclude]
- repo: local
hooks:
- id: ruff-check
name: ruff check
description: ruff check
entry: ruff check
language: python
files: \.(py)$
types: [file, python]
args: [--config=pyproject.toml, --force-exclude, --fix]
- repo: local
hooks:
- id: nbstripout
name: nbstripout notebook output
description: trip
entry: nbstripout
language: system
exclude: (?x)(^3rdparty/)
files: \.(ipynb)$
types: [file]
- repo: local
hooks:
- id: check-license-header
name: Check source file license header
entry: python3 scm/qac/check_license_header.py
language: python
files: \.(py|pyi|proto|c|cc|cpp|cxx|cu|h|hpp)$
types: [file]
exclude: (?x)(^3rdparty/|^docs/)