-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.pre-commit-config.yaml
38 lines (35 loc) · 1.01 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
exclude: "docs|node_modules|migrations|.git|.tox"
default_stages: [commit]
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.8
hooks:
# Sort the imports
- id: ruff
name: ruff-sort-imports
args: [--select, I, --fix]
# Run the linter.
- id: ruff
args: [--fix]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
hooks:
- id: mypy
args: ["--config=pyproject.toml"]
additional_dependencies:
[
dask,
numpy>=1.23.0,
pandas,
xarray>=2023.2.0,
types-python-dateutil,
]