Skip to content

Commit d4078d7

Browse files
committed
✅: basedmypy
Signed-off-by: nstarman <[email protected]>
1 parent da26175 commit d4078d7

File tree

5 files changed

+64
-2
lines changed

5 files changed

+64
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,14 @@ jobs:
127127
mypy --tb --no-incremental --cache-dir=/dev/null \
128128
${{ steps.collect-files.outputs.files }}
129129
130+
- name: basedmypy
131+
run: |
132+
uv sync --no-editable --group=basedmypy
133+
uv pip install numpy==${{ matrix.numpy-version }}
134+
uv run --no-sync --active \
135+
mypy --tb --no-incremental --cache-dir=/dev/null \
136+
${{ steps.collect-files.outputs.files }}
137+
130138
- name: pyright
131139
run: |
132140
uv sync --no-editable --group=pyright

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ test_numpy = [
6565
pyright = [
6666
"pyright>=1.1.403",
6767
]
68+
basedmypy = [
69+
"basedmypy>=2.10.0",
70+
]
6871

6972
[tool.hatch]
7073
version.source = "vcs"

tests/integration/test_numpy1p0.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# mypy: disable-error-code="no-redef"
1+
# mypy: disable-error-code="no-redef, explicit-any"
22

33
from types import ModuleType
44
from typing import Any

tests/integration/test_numpy2p0.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# mypy: disable-error-code="no-redef"
1+
# mypy: disable-error-code="no-redef, explicit-any"
22

33
from types import ModuleType
44
from typing import Any, TypeAlias

uv.lock

Lines changed: 51 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)