diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6412127..2449bfd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,6 +10,14 @@ repos: - id: check-added-large-files exclude_types: [yaml] +- repo: https://github.com/pre-commit/mirrors-mypy + rev: v2.1.0 + hooks: + - id: mypy + additional_dependencies: + - pandas-stubs + exclude: 'docs/source/conf\.py' + - repo: https://github.com/keewis/blackdoc rev: v0.4.6 hooks: diff --git a/pixi.toml b/pixi.toml index 5596517..6a73279 100644 --- a/pixi.toml +++ b/pixi.toml @@ -53,6 +53,7 @@ pooch = "*" [feature.dev.tasks] lint = "ruff check tests xarray_subset_grid" +pre_commit = "pre-commit run --all-files" test = { cmd = ["pytest", "tests/"], depends-on = ["download"] } download = "python download_test_data.py" test_all = { cmd = "pytest --online tests/", depends-on = ["download"] }