We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dd56df commit e5a9c65Copy full SHA for e5a9c65
build_helpers/pre_commit_update.py
@@ -16,10 +16,12 @@
16
with require.open("r") as rfile:
17
requirements.extend(rfile.readlines())
18
19
-# Extract types only
20
-type_reqs = [
21
- r.strip("\n") for r in requirements if r.startswith("types-") or r.startswith("SQLAlchemy")
22
-]
+# Extract relevant types only
+supported = ("types-", "SQLAlchemy", "scipy-stubs")
+
+# 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)]
25
26
with pre_commit_file.open("r") as file:
27
f = yaml.load(file, Loader=yaml.SafeLoader)
0 commit comments