-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.pre-commit-config.yaml
40 lines (37 loc) · 1.14 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
exclude: "docs|node_modules|migrations|.git|.tox"
default_stages: [commit]
fail_fast: true
# To update pre-commit hooks, run `pre-commit autoupdate` in the terminal.
# Then update the versions in `conda-env/dev.yml`.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.4
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.14.1
hooks:
- id: mypy
args: ["--config=pyproject.toml"]
additional_dependencies:
[
dask,
"numpy>=2.0.0,<3.0.0",
pandas,
xarray>=2024.03.0,
types-python-dateutil,
]