-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
32 lines (29 loc) · 943 Bytes
/
.pre-commit-config.yaml
File metadata and controls
32 lines (29 loc) · 943 Bytes
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
exclude: "docs|node_modules|migrations|.git|.tox|examples|analysis_data_preprocess|auxiliary_tools|conda/meta.yaml|e3sm_diags/driver/utils/zwf_functions.py"
default_stages: [pre-commit]
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.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.14.10
hooks:
# Sort the imports
- id: ruff-check
name: ruff-sort-imports
args: [--select, I, --fix]
# Run the linter.
- id: ruff-check
args: [--fix]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.19.1
hooks:
- id: mypy
args: [--config=pyproject.toml]
additional_dependencies:
[dask, "numpy>=2.0.0,<3.0.0", xarray>=2024.3.0, types-PyYAML]