forked from contrailcirrus/pycontrails
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
38 lines (38 loc) · 919 Bytes
/
.pre-commit-config.yaml
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
repos:
- repo: local
hooks:
- id: ruff
name: ruff
language_version: python3
language: python
entry: ruff
args: [--fix, --exit-non-zero-on-fix]
types: [python]
- id: doc8
name: doc8
language_version: python3
language: python
entry: doc8
types: [file]
files: \.(rst)$
- id: black
name: black
language_version: python3
language: python
entry: black
types: [file]
files: \.(py|ipynb)$
- id: nb-clean
name: nb-clean
language_version: python3
language: python
entry: nb-clean
types: [file]
files: \.(ipynb)$
args:
- clean
- --remove-empty-cells
- --preserve-cell-metadata
- tags
- --preserve-cell-outputs
- --preserve-execution-counts