-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
50 lines (45 loc) · 1.26 KB
/
.pre-commit-config.yaml
File metadata and controls
50 lines (45 loc) · 1.26 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:
- 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: ruff-python
name: ruff-change-exclude-docs
description: Check python doc style.
entry: ruff check
language: system
files: \.(py)$
types: [file, python]
args: [--config=pyproject.toml]
- 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/)
- repo: local
hooks:
- id: nbstripout
name: nbstripout notebook output
description: trip
entry: nbstripout
language: system
exclude: (?x)(^3rdparty/)
files: \.(ipynb)$
types: [file]