From 2c7b7ff274c0e5f59d4019654c68b4c34df1af03 Mon Sep 17 00:00:00 2001 From: MarianaVZorzo Date: Fri, 12 Jun 2026 17:17:35 -0300 Subject: [PATCH 1/3] Add mypy pre-commit --- .pre-commit-config.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6412127..725a35a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,6 +10,15 @@ 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: + - types-requests + - pandas-stubs + exclude: 'docs/source/conf\.py' + - repo: https://github.com/keewis/blackdoc rev: v0.4.6 hooks: From 5956acff8e6a534a2156fe576d89b9b5610b1ee6 Mon Sep 17 00:00:00 2001 From: MarianaVZorzo Date: Sun, 14 Jun 2026 17:06:48 -0300 Subject: [PATCH 2/3] Remove unused types-requests dependency --- .pre-commit-config.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 725a35a..2449bfd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,6 @@ repos: hooks: - id: mypy additional_dependencies: - - types-requests - pandas-stubs exclude: 'docs/source/conf\.py' From 56ba56fbb56824fa5f49b9b49b91215a375156ab Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Tue, 16 Jun 2026 08:35:36 -0300 Subject: [PATCH 3/3] add pre-commit pixi task for devs --- pixi.toml | 1 + 1 file changed, 1 insertion(+) 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"] }