Skip to content

Commit

Permalink
🔧 de-duplicate the scipy version requirements (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenham authored Dec 31, 2024
2 parents 45c7ccb + 1971db2 commit 2d9f5e2
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 70 deletions.
15 changes: 10 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dependencies = [
]

[dependency-groups]
scipy = ["scipy==1.15.0rc2"]
extras = ["scipy-stubs[scipy]"]
ci = ["packaging>=24.2"]
codegen = ["libcst>=1.5.1,<2"]
mdformat = [
Expand All @@ -42,13 +42,13 @@ mdformat = [
"mdformat-gfm-alerts>=1.0.1",
]
lint = [
{include-group = "scipy"},
{include-group = "extras"},
{include-group = "mdformat"},
"ruff>=0.8.4",
"sp-repo-review[cli]>=2024.8.19",
]
typecheck = [
{include-group = "scipy"},
{include-group = "extras"},
{include-group = "ci"},
{include-group = "codegen"},
"basedmypy[faster-cache]>=2.8.1",
Expand Down Expand Up @@ -85,6 +85,11 @@ rm -rf
codegen/__pycache__
scipy-stubs/**/*.pyc
scipy-stubs/**/__pycache__
scripts/*.pyc
scripts/__pycache__
tests/**/*.pyc
tests/**/__pycache__
./**/.cache
./**/.mypy_cache
./**/.ruff_cache
./**/.tox
Expand Down Expand Up @@ -151,7 +156,7 @@ args = [
]

[tool.typos.files]
extend-exclude = ["*.pyi"]
extend-exclude = ["*.pyi", ".mypyignore"]

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

[tool.pyright]
include = ["codegen", "scipy-stubs", "tests"]
include = ["scipy-stubs", "codegen", "scripts", "tests"]
ignore = [".venv"]
venv = ".venv"
venvPath = "."
Expand Down
Loading

0 comments on commit 2d9f5e2

Please sign in to comment.