-
Notifications
You must be signed in to change notification settings - Fork 27
/
.pre-commit-config.yaml
44 lines (40 loc) · 1.02 KB
/
.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
39
40
41
42
43
44
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.7.1
hooks:
# Run the linter.
- id: ruff
types_or: [ python, pyi ]
args: [ --fix ]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi ]
- repo: https://github.com/srstevenson/nb-clean
rev: 4.0.1
hooks:
- id: nb-clean
args:
- --preserve-cell-metadata
- nbsphinx
- tags
- --
# - repo: https://github.com/numpy/numpydoc
# rev: v1.8.0
# hooks:
# - id: numpydoc-validation
# - repo: local
# hooks:
# - id: generate-stubs
# name: Generate MyPy Stubs
# entry: stubgen python -o python/stubs
# language: system
# files: pdstools\*.py$
# always_run: true