-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
33 lines (33 loc) · 1010 Bytes
/
.pre-commit-config.yaml
File metadata and controls
33 lines (33 loc) · 1010 Bytes
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
repos:
- repo: local
hooks:
- id: trailing-whitespace
name: trailing-whitespace
entry: trailing-whitespace-fixer
language: python
exclude: ^(.*fits|.*pt|.*pkl|.*npz|.*ckpt|.*png|.*inv|.*npy|.*pdf|.*jpg)
- id: check-added-large-files
name: check-added-large-files
entry: check-added-large-files
language: python
args:
- "--maxkb=15000"
- id: check-merge-conflict
name: check-merge-conflict
entry: check-merge-conflict
language: python
- id: end-of-file-fixer
name: end-of-file-fixer
entry: end-of-file-fixer
language: python
exclude: ^(.*fits|.*pt|.*pkl|.*npz|.*ckpt|.*png|.*inv|.*npy|.*pdf|.*jpg)
- id: ruff-format
name: ruff format
entry: ruff format
language: system
types: [python]
- id: ruff-lint
name: ruff lint
entry: ruff check --fix
language: system
types: [python]