Skip to content

Commit d377d52

Browse files
authored
ci: renovate ignores python related version updates (#268)
This pull request updates the `.github/renovate.json` configuration to add new rules for dependency management, specifically targeting Python-related dependencies and base images. The new rules are currently disabled, allowing for future flexibility in how Renovate handles Python interpreter and base image updates. Python dependency management: * Added a host rule to disable updates from the test PyPI registry (`test.pypi.org`). * Added a rule to ignore Python interpreter version updates managed by `poetry`, with the rule disabled for now. Docker image management: * Added a rule to ignore updates to Python base images in Dockerfiles, including common package names, and set the rule as disabled.
1 parent ae81838 commit d377d52

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/renovate.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@
6666
"matchManagers": ["poetry", "pip_requirements"],
6767
"addLabels": ["python"]
6868
},
69+
{
70+
"description": "Ignore Python interpreter version updates",
71+
"matchManagers": ["poetry"],
72+
"matchDepNames": ["python"],
73+
"enabled": false
74+
},
6975
{
7076
"description": "Label Node.js dependencies",
7177
"matchManagers": ["npm"],
@@ -76,6 +82,12 @@
7682
"matchManagers": ["dockerfile", "docker-compose"],
7783
"addLabels": ["docker"]
7884
},
85+
{
86+
"description": "Ignore Python base image updates in Dockerfiles",
87+
"matchManagers": ["dockerfile"],
88+
"matchPackageNames": ["python", "docker.io/library/python", "library/python"],
89+
"enabled": false
90+
},
7991
{
8092
"description": "Label Helm charts",
8193
"matchManagers": ["helm-requirements", "helm-values", "helmv3"],

0 commit comments

Comments
 (0)