Skip to content

Commit 82ae3ac

Browse files
committed
Add .pre-commit-config.yaml
1 parent bd04401 commit 82ae3ac

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.pre-commit-config.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-docstring-first
8+
- id: check-yaml
9+
- id: debug-statements
10+
- id: check-ast
11+
- repo: https://github.com/astral-sh/ruff-pre-commit
12+
rev: "v0.7.3"
13+
hooks:
14+
- id: ruff
15+
exclude: docs/source/conf.py|ipynb_filter.py
16+
args: ["--fix"]
17+
- id: ruff-format
18+
exclude: docs/source/conf.py|ipynb_filter.py
19+
- repo: https://github.com/pre-commit/mirrors-mypy
20+
rev: "v1.13.0"
21+
hooks:
22+
- id: mypy
23+
exclude: ipynb_filter.py|docs/source/conf.py
24+
additional_dependencies:
25+
- types-setuptools
26+
- pandas-stubs
27+
- types-psutil
28+
- repo: https://github.com/kynan/nbstripout
29+
rev: 0.8.0
30+
hooks:
31+
- id: nbstripout

0 commit comments

Comments
 (0)