Skip to content

Commit ffcab62

Browse files
committed
🔧 simplify the stubtest cmd
1 parent c8fe880 commit ffcab62

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

‎.github/workflows/ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ jobs:
9494
uv run
9595
-p ${{ matrix.python }}
9696
--with="numpy==${{ matrix.numpy }}"
97-
--active
9897
--no-editable
9998
basedpyright
10099
@@ -103,7 +102,6 @@ jobs:
103102
uv run
104103
-p ${{ matrix.python }}
105104
--with="numpy==${{ matrix.numpy }}"
106-
--active
107105
--no-editable
108106
mypy
109107
--tb
@@ -119,9 +117,7 @@ jobs:
119117
uv run
120118
-p ${{ matrix.python }}
121119
--with="numpy==${{ matrix.numpy }}"
122-
--active
123120
--no-editable
124121
stubtest
125122
--allowlist=.mypyignore
126-
--mypy-config-file=pyproject.toml
127123
scipy

‎pyproject.toml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,8 @@ rm -rf
8787

8888
[tool.poe.tasks.stubtest]
8989
cmd = """
90-
uv run
91-
--no-editable
92-
--reinstall-package=scipy-stubs
93-
stubtest
94-
--allowlist=.mypyignore
95-
--mypy-config-file=pyproject.toml
96-
$modules
90+
uv run --no-editable --reinstall-package=scipy-stubs
91+
stubtest --allowlist=.mypyignore $modules
9792
"""
9893
args = [{ name = "modules", positional = true, multiple = true, default = "scipy" }]
9994

@@ -229,7 +224,6 @@ commands = [
229224
[
230225
"stubtest",
231226
"--allowlist=.mypyignore",
232-
"--mypy-config-file=pyproject.toml",
233227
{ replace = "posargs", default = ["scipy"], extend = true },
234228
],
235229
]

0 commit comments

Comments
 (0)