Skip to content

Commit 2936cb4

Browse files
authored
Merge pull request freqtrade#11948 from jorenham/scipy-stubs
Add `scipy-stubs` as dev dependency
2 parents 81fdff1 + e5a9c65 commit 2936cb4

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ repos:
3131
- types-requests==2.32.4.20250611
3232
- types-tabulate==0.9.0.20241207
3333
- types-python-dateutil==2.9.0.20250516
34+
- scipy-stubs==1.15.3.0
3435
- SQLAlchemy==2.0.41
3536
# stages: [push]
3637

build_helpers/pre_commit_update.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@
1616
with require.open("r") as rfile:
1717
requirements.extend(rfile.readlines())
1818

19-
# Extract types only
20-
type_reqs = [
21-
r.strip("\n") for r in requirements if r.startswith("types-") or r.startswith("SQLAlchemy")
22-
]
19+
# Extract relevant types only
20+
supported = ("types-", "SQLAlchemy", "scipy-stubs")
21+
22+
# Find relevant dependencies
23+
# Only keep the first part of the line up to the first space
24+
type_reqs = [r.strip("\n").split()[0] for r in requirements if r.startswith(supported)]
2325

2426
with pre_commit_file.open("r") as file:
2527
f = yaml.load(file, Loader=yaml.SafeLoader)

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ develop = [
111111
"pytest-xdist",
112112
"pytest",
113113
"ruff",
114+
"scipy-stubs",
114115
"time-machine",
115116
"types-cachetools",
116117
"types-filelock",

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ time-machine==2.16.0
2424
nbconvert==7.16.6
2525

2626
# mypy types
27+
scipy-stubs==1.15.3.0 # keep in sync with `scipy` in `requirements-hyperopt.txt`
2728
types-cachetools==6.0.0.20250525
2829
types-filelock==3.2.7
2930
types-requests==2.32.4.20250611

0 commit comments

Comments
 (0)