Skip to content

Commit 70abc7a

Browse files
kkollsgaclaude
andcommitted
Clean up stubtest allowlist and add type stub installation
- Reduce allowlist from ~500 lines to ~170 lines using efficient regex patterns - Use grouped patterns like (dataarray|dataset|variable) instead of wildcards - All patterns now match exactly the errors in core modules - Add step to install type stubs before running stubtest - Local testing confirms 0 errors, 0 unused patterns Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1beff52 commit 70abc7a

2 files changed

Lines changed: 136 additions & 467 deletions

File tree

.github/workflows/ci-additional.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,10 @@ jobs:
222222
run: |
223223
pixi run -e ${{env.PIXI_ENV}} -- python xarray/util/print_versions.py
224224
225+
- name: Install type stubs
226+
run: |
227+
pixi run -e ${{env.PIXI_ENV}} -- python -m mypy --install-types --non-interactive xarray/ || true
228+
225229
- name: Run stubtest (core modules)
226230
run: |
227231
pixi run -e ${{env.PIXI_ENV}} -- python -m mypy.stubtest \

0 commit comments

Comments
 (0)