-
-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy path.renovaterc.json
166 lines (166 loc) · 5.94 KB
/
.renovaterc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"constraints": {
"pdm": "2.22.3",
"python": "==3.12"
},
"customManagers": [
{
"customType": "regex",
"datasourceTemplate": "pypi",
"description": "Match Python packages installed with pip/pipx",
"fileMatch": [
"^Makefile$",
"^README\\.md$",
"^\\.devcontainer/Dockerfile$",
"^\\.github/workflows/.+\\.yml$",
"^\\.gitlab/workflows/.+\\.yml$",
"^\\.readthedocs\\.yaml$",
"^\\.renovaterc\\.json$",
"^docs/.+\\.md$" ],
"matchStrings": [
"pip install.* (?<depName>.*?)(\\[.*?\\])?==(?<currentValue>.*?)[\"\n]",
"pipx install( --force)? (?<depName>.*?)(\\[.*?\\])?==(?<currentValue>.*?)\\s",
"pipx list --short \\| grep -q \"(?<depName>.*?)(\\[.*?\\])? (?<currentValue>.*?)\""
]
},
{
"customType": "regex",
"datasourceTemplate": "repology",
"depTypeTemplate": "debian",
"description": "Match debian packages installed in Dockerfiles",
"fileMatch": [
"^\\.devcontainer\\/Dockerfile$" ],
"matchStrings": [
"# renovate: depName=(?<depName>.*?)\nARG .*?_VERSION=\"(?<currentValue>.*)\"\n"
],
"versioningTemplate": "deb"
},
{
"customType": "regex",
"datasourceTemplate": "pypi",
"depNameTemplate": "pdm",
"description": "Match pdm version specified in setup-pdm GitHub Action",
"fileMatch": [
"^\\.github/workflows/.+\\.yml$" ],
"matchStrings": [
"uses: pdm-project/setup-pdm[\\s\\S]+?\\sversion: (?<currentValue>.*)\n"
]
},
{
"customType": "regex",
"datasourceTemplate": "pypi",
"depNameTemplate": "pdm",
"description": "Match pdm version specified in the renovate constraints",
"fileMatch": [
"^\\.renovaterc\\.json$" ],
"matchStrings": [
"\"pdm\": \"(?<currentValue>.*)\""
]
},
{
"customType": "regex",
"datasourceTemplate": "github-runners",
"depTypeTemplate": "github-runner",
"description": "Match GitHub runner defined in GitHub Actions matrix strategy",
"fileMatch": [
"^\\.github/workflows/.+\\.yml$",
"^template/.*\\.github.*/workflows/.+\\.yml(\\.jinja)?$"
],
"matchStrings": [
"# renovate: github-runner\n\\s+- (os: )?(?<depName>.*?)-(?<currentValue>.*)\n"
],
"versioningTemplate": "docker"
},
{
"customType": "regex",
"datasourceTemplate": "npm",
"description": "Match npm packages used with npx",
"fileMatch": [
"^\\.github/workflows/.+\\.yml$",
"^\\.gitlab/workflows/.+\\.yml$" ],
"matchStrings": [
"--package (?<depName>.+?)@(?<currentValue>.+?)\\s"
],
"versioningTemplate": "docker"
},
{
"customType": "regex",
"datasourceTemplate": "git-tags",
"depNameTemplate": "https://github.com/serious-scaffold/ss-python.git",
"depTypeTemplate": "copier-template",
"description": "Match template version specified in .copier-answers.yml",
"fileMatch": [
"^\\.copier-answers\\.yml$"
],
"matchStrings": [
"_commit: (?<currentValue>.*?)\n"
],
"versioningTemplate": "semver"
}
],
"extends": [
"config:best-practices",
":enablePreCommit",
":maintainLockFilesWeekly",
":semanticCommitTypeAll(build)"
],
"packageRules": [
{
"description": "Update lock files for development dependencies",
"matchUpdateTypes": [
"lockFileMaintenance"
],
"postUpgradeTasks": {
"commands": [
"pdm update --lockfile pdm.dev.lock --no-default --dev --no-sync --update-eager"
]
}
},
{
"commitMessageTopic": "serious-scaffold-python",
"description": "Update template with copier when a new version is released",
"matchDepTypes": [
"copier-template"
],
"postUpgradeTasks": {
"commands": [
"git stash",
"pip install copier==9.4.1",
"copier update --skip-answered --defaults --vcs-ref {{{newVersion}}}"
]
},
"semanticCommitScope": "copier-template"
},
{
"description": "Group pdm Python package and version specified in setup-pdm GitHub Action",
"groupName": "pdm",
"matchDatasources": [
"github-tags",
"pypi"
],
"matchDepNames": [
"pdm"
]
},
{
"description": "Group renovate docker tag and pre-commit-hooks tag",
"groupName": "renovate",
"matchDatasources": [
"docker",
"github-tags"
],
"matchDepNames": [
"ghcr.io/renovatebot/renovate",
"renovatebot/pre-commit-hooks"
]
},
{
"description": "Group debian packages to avoid failure when multiple packages are outdated",
"groupName": "debian packages",
"matchDepTypes": [
"debian"
]
}
]
}