Skip to content

Commit fa17259

Browse files
committed
Fix Renovate conda environment regex and reactivate Python groups
1 parent dfa81e2 commit fa17259

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

renovate.json

Lines changed: 35 additions & 1 deletion
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 other Python libraries per dependency in sync across files",
34+
"matchDatasources": ["pypi", "conda"],
35+
"groupName": "python-update-{{packageName}}"
36+
},
37+
{
38+
"description": "Keep core scientific stack (numpy, pandas, scipy) in sync across files",
39+
"matchDatasources": ["pypi", "conda"],
40+
"matchPackageNames": ["numpy", "pandas", "scipy"],
41+
"groupName": "python-scientific-core-libs"
42+
},
43+
{
44+
"description": "Keep Machine Learning libraries (scikit-learn, UMAP, OpenTSNE, SHAP) in sync across files",
45+
"matchDatasources": ["pypi", "conda"],
46+
"matchPackageNames": ["scikit-**", "umap-learn", "opentsne", "shap", "optuna"],
47+
"groupName": "python-machine-learning-libs"
48+
},
49+
{
50+
"description": "Keep Visualization libraries (plotly, matplotlib, seaboarn) in sync across files",
51+
"matchDatasources": ["pypi", "conda"],
52+
"matchPackageNames": ["matplotlib", "plotly", "python-kaleido", "seaborn", "wordcloud"],
53+
"groupName": "python-visualization-libs"
3154
}
3255
],
3356
"customManagers": [
@@ -174,11 +197,22 @@
174197
"customType": "regex",
175198
"fileMatch": ["(^|/)conda-environment\\.yml$"],
176199
"matchStrings": [
177-
"\\s+-\\s+(?<depName>[\\w-]+)=(?<currentValue>[^\\s#=]+).*"
200+
"^\\s+-\\s+(?<depName>[\\w-]+)=(?<currentValue>[^\\s#=]+).*$"
178201
],
202+
"depNameTemplate": "{{{depName}}}",
179203
"datasourceTemplate": "conda",
180204
"registryUrlTemplate": "https://api.anaconda.org/package/conda-forge",
181205
"versioningTemplate": "conda"
206+
},
207+
{
208+
"description": "Update pip nested packages inside conda-environment.yml.",
209+
"fileMatch": ["(^|/)conda-environment\\.yml$"],
210+
"matchStrings": [
211+
"^\\s+-\\s+(?<depName>[\\w-]+)==(?<currentValue>[^\\s#=]+).*$"
212+
],
213+
"depNameTemplate": "{{{depName}}}",
214+
"datasourceTemplate": "pypi",
215+
"versioningTemplate": "pep440"
182216
}
183217
]
184218
}

0 commit comments

Comments
 (0)