Skip to content

Commit 5e10bed

Browse files
authored
feat: add Python support for Renovate (#122)
1 parent 68bc13f commit 5e10bed

2 files changed

Lines changed: 65 additions & 0 deletions

File tree

default.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"github>coopnorge/github-workflow-renovate:docker.json5",
77
"github>coopnorge/github-workflow-renovate:helm-values.json5",
88
"github>coopnorge/github-workflow-renovate:helm.json5",
9+
"github>coopnorge/github-workflow-renovate:python.json5",
910
],
1011
"labels": [
1112
"dependencies",

python.json5

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
4+
"packageRules": [
5+
// Set range strategy
6+
{
7+
"matchManagers": ["pep621", "poetry", "pip_requirements"],
8+
"rangeStrategy": "pin"
9+
},
10+
// Disable python version updates
11+
{
12+
"matchDepTypes": ["requires-python"],
13+
"enabled": false
14+
},
15+
// Dagster Package Group
16+
{
17+
"matchManagers": ["pep621"],
18+
"matchPackageNames": [
19+
"dagster",
20+
"dagster-*",
21+
"dbt-core",
22+
"dbt-*"
23+
],
24+
"groupName": "dagster and dbt",
25+
"groupSlug": "dagster-dbt",
26+
// Don't separate major and minor updates for these packages,
27+
// since they are often released together and we want to update them together
28+
"separateMajorMinor": false
29+
},
30+
{
31+
"matchManagers": ["pep621"],
32+
"matchPackageNames": [
33+
"dagster",
34+
"dagster-*",
35+
"dbt-core",
36+
"dbt-*"
37+
],
38+
"matchUpdateTypes": ["major"],
39+
// If it is a major update require approval in dependency dashboard before creating a PR,
40+
// since these updates can be breaking and we want to review them before updating
41+
"dependencyDashboardApproval": true
42+
},
43+
44+
// Create a single PR for all non-major dependency updates
45+
{
46+
"matchManagers": ["pep621", "poetry", "pip_requirements"],
47+
"matchUpdateTypes": ["patch", "minor"],
48+
// These are being handled above.
49+
"excludePackageNames": [
50+
"dagster",
51+
"dagster-*",
52+
"dbt-core",
53+
"dbt-*"
54+
],
55+
"groupName": "all non-major dependencies",
56+
},
57+
// Disable automerge for major updates
58+
{
59+
"matchManagers": ["pep621", "poetry", "pip_requirements"],
60+
"matchUpdateTypes": ["major"],
61+
"automerge": false,
62+
}
63+
]
64+
}

0 commit comments

Comments
 (0)