Merge pull request #11948 from jorenham/scipy-stubs
Add `scipy-stubs` as dev dependency
This commit is contained in:
@@ -31,6 +31,7 @@ repos:
|
|||||||
- types-requests==2.32.4.20250611
|
- types-requests==2.32.4.20250611
|
||||||
- types-tabulate==0.9.0.20241207
|
- types-tabulate==0.9.0.20241207
|
||||||
- types-python-dateutil==2.9.0.20250516
|
- types-python-dateutil==2.9.0.20250516
|
||||||
|
- scipy-stubs==1.15.3.0
|
||||||
- SQLAlchemy==2.0.41
|
- SQLAlchemy==2.0.41
|
||||||
# stages: [push]
|
# stages: [push]
|
||||||
|
|
||||||
|
|||||||
@@ -16,10 +16,12 @@ with require_dev.open("r") as rfile:
|
|||||||
with require.open("r") as rfile:
|
with require.open("r") as rfile:
|
||||||
requirements.extend(rfile.readlines())
|
requirements.extend(rfile.readlines())
|
||||||
|
|
||||||
# Extract types only
|
# Extract relevant types only
|
||||||
type_reqs = [
|
supported = ("types-", "SQLAlchemy", "scipy-stubs")
|
||||||
r.strip("\n") for r in requirements if r.startswith("types-") or r.startswith("SQLAlchemy")
|
|
||||||
]
|
# Find relevant dependencies
|
||||||
|
# Only keep the first part of the line up to the first space
|
||||||
|
type_reqs = [r.strip("\n").split()[0] for r in requirements if r.startswith(supported)]
|
||||||
|
|
||||||
with pre_commit_file.open("r") as file:
|
with pre_commit_file.open("r") as file:
|
||||||
f = yaml.load(file, Loader=yaml.SafeLoader)
|
f = yaml.load(file, Loader=yaml.SafeLoader)
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ develop = [
|
|||||||
"pytest-xdist",
|
"pytest-xdist",
|
||||||
"pytest",
|
"pytest",
|
||||||
"ruff",
|
"ruff",
|
||||||
|
"scipy-stubs",
|
||||||
"time-machine",
|
"time-machine",
|
||||||
"types-cachetools",
|
"types-cachetools",
|
||||||
"types-filelock",
|
"types-filelock",
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ time-machine==2.16.0
|
|||||||
nbconvert==7.16.6
|
nbconvert==7.16.6
|
||||||
|
|
||||||
# mypy types
|
# mypy types
|
||||||
|
scipy-stubs==1.15.3.0 # keep in sync with `scipy` in `requirements-hyperopt.txt`
|
||||||
types-cachetools==6.0.0.20250525
|
types-cachetools==6.0.0.20250525
|
||||||
types-filelock==3.2.7
|
types-filelock==3.2.7
|
||||||
types-requests==2.32.4.20250611
|
types-requests==2.32.4.20250611
|
||||||
|
|||||||
Reference in New Issue
Block a user