Skip to content

Commit 1f3ac54

Browse files
committed
Refine Renovate Python dependency updates
1 parent 81523dc commit 1f3ac54

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

renovate.json

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,29 @@
2828
"matchSourceUrls": [
2929
"https://github.com/jqassistant-plugin/jqassistant-typescript-plugin"
3030
]
31+
},
32+
{
33+
"description": "Keep core scientific stack (numpy, pandas, scipy) in sync across files",
34+
"matchDatasources": ["pypi"],
35+
"matchPackagePatterns": ["^(numpy|pandas|scipy)$"],
36+
"groupName": "python-scientific-core-libs"
37+
},
38+
{
39+
"description": "Keep Machine Learning libraries (scikit-learn, UMAP, OpenTSNE, SHAP) in sync across files",
40+
"matchDatasources": ["pypi"],
41+
"matchPackagePatterns": ["^scikit-.*", "umap-learn", "opentsne", "shap", "optuna"],
42+
"groupName": "python-machine-learning-libs"
43+
},
44+
{
45+
"description": "Keep Visualization libraries (plotly, matplotlib, seaboarn) in sync across files",
46+
"matchDatasources": ["pypi"],
47+
"matchPackagePatterns": ["matplotlib", "plotly", "python-kaleido", "seaborn", "wordcloud"],
48+
"groupName": "python-visualization-libs"
49+
},
50+
{
51+
"description": "Keep other Python libraries per dependency in sync across files",
52+
"matchDatasources": ["pypi"],
53+
"groupName": "python-update-{{depName}}"
3154
}
3255
],
3356
"customManagers": [
@@ -170,14 +193,14 @@
170193
"datasourceTemplate": "maven"
171194
},
172195
{
173-
"description": "Update conda environment for Python in sync with requirements.txt",
196+
"description": "Update conda environment for Python with pip version",
174197
"customType": "regex",
175198
"fileMatch": ["(^|/)conda-environment\\.yml$"],
176199
"matchStrings": [
177-
"\\s+-\\s+(?<depName>[a-zA-Z0-9_.-]+)=(?<currentValue>[^\\s]+)"
200+
"\\s+-\\s+(?<depName>[\\w-]+)={1,2}(?<currentValue>[^\\s#]+).*"
178201
],
179202
"datasourceTemplate": "Pypi",
180203
"versioningTemplate": "pep440"
181204
}
182205
]
183-
}
206+
}

0 commit comments

Comments
 (0)