Skip to content

Commit 2d9f5e2

Browse files
authored
🔧 de-duplicate the scipy version requirements (#389)
2 parents 45c7ccb + 1971db2 commit 2d9f5e2

File tree

2 files changed

+75
-70
lines changed

2 files changed

+75
-70
lines changed

‎pyproject.toml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ dependencies = [
3333
]
3434

3535
[dependency-groups]
36-
scipy = ["scipy==1.15.0rc2"]
36+
extras = ["scipy-stubs[scipy]"]
3737
ci = ["packaging>=24.2"]
3838
codegen = ["libcst>=1.5.1,<2"]
3939
mdformat = [
@@ -42,13 +42,13 @@ mdformat = [
4242
"mdformat-gfm-alerts>=1.0.1",
4343
]
4444
lint = [
45-
{include-group = "scipy"},
45+
{include-group = "extras"},
4646
{include-group = "mdformat"},
4747
"ruff>=0.8.4",
4848
"sp-repo-review[cli]>=2024.8.19",
4949
]
5050
typecheck = [
51-
{include-group = "scipy"},
51+
{include-group = "extras"},
5252
{include-group = "ci"},
5353
{include-group = "codegen"},
5454
"basedmypy[faster-cache]>=2.8.1",
@@ -85,6 +85,11 @@ rm -rf
8585
codegen/__pycache__
8686
scipy-stubs/**/*.pyc
8787
scipy-stubs/**/__pycache__
88+
scripts/*.pyc
89+
scripts/__pycache__
90+
tests/**/*.pyc
91+
tests/**/__pycache__
92+
./**/.cache
8893
./**/.mypy_cache
8994
./**/.ruff_cache
9095
./**/.tox
@@ -151,7 +156,7 @@ args = [
151156
]
152157

153158
[tool.typos.files]
154-
extend-exclude = ["*.pyi"]
159+
extend-exclude = ["*.pyi", ".mypyignore"]
155160

156161
[tool.mypy]
157162
python_version = "3.10"
@@ -165,7 +170,7 @@ enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
165170
plugins = ["numpy.typing.mypy_plugin"]
166171

167172
[tool.pyright]
168-
include = ["codegen", "scipy-stubs", "tests"]
173+
include = ["scipy-stubs", "codegen", "scripts", "tests"]
169174
ignore = [".venv"]
170175
venv = ".venv"
171176
venvPath = "."

0 commit comments

Comments
 (0)