Skip to content

Commit f889d69

Browse files
authored
Merge pull request #1438 from scop/renovate/migrate-config
chore(config): migrate renovate config
2 parents 5fc6033 + 6a9c616 commit f889d69

File tree

1 file changed

+28
-16
lines changed

1 file changed

+28
-16
lines changed

.github/renovate.json

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,42 +19,54 @@
1919
"dockerfile": {
2020
"enabled": false
2121
},
22-
"pip_requirements": {
23-
"fileMatch": [
24-
"(^|/)requirements[\\w-]*\\.txt$"
25-
]
26-
},
27-
"regexManagers": [
22+
"customManagers": [
2823
{
29-
"fileMatch": ["^\\.pre-commit-config\\.yaml$"],
30-
"matchStrings": ["(?<depName>[\\w-]+)(?<currentValue>==[a-z0-9.]+)"],
24+
"customType": "regex",
25+
"managerFilePatterns": [
26+
".pre-commit-config.yaml"
27+
],
28+
"matchStrings": [
29+
"(?<depName>[\\w-]+)(?<currentValue>==[a-z0-9.]+)"
30+
],
3131
"datasourceTemplate": "pypi"
3232
}
3333
],
34-
"labels": ["bot"],
34+
"labels": [
35+
"bot"
36+
],
3537
"packageRules": [
3638
{
37-
"matchFiles": ["test/requirements.txt"],
39+
"matchFileNames": [
40+
"test/requirements.txt"
41+
],
3842
"semanticCommitType": "test"
3943
},
4044
{
41-
"matchManagers": ["pre-commit"],
45+
"matchManagers": [
46+
"pre-commit"
47+
],
4248
"commitMessageTopic": "{{depName}}",
4349
"semanticCommitScope": "pre-commit"
4450
},
4551
{
46-
"matchPackagePatterns": ["(^|/)gitlint$"],
4752
"versioning": "pep440",
48-
"groupName": "gitlint"
53+
"groupName": "gitlint",
54+
"matchPackageNames": [
55+
"/(^|/)gitlint$/"
56+
]
4957
},
5058
{
51-
"matchPackageNames": ["perltidy/perltidy"],
59+
"matchPackageNames": [
60+
"perltidy/perltidy"
61+
],
5262
"versioning": "regex:^(?<major>\\d{8})$"
5363
},
5464
{
55-
"matchPackagePatterns": ["(^|/)ruff(-pre-commit)?$"],
5665
"groupName": "ruff",
57-
"versioning": "pep440"
66+
"versioning": "pep440",
67+
"matchPackageNames": [
68+
"/(^|/)ruff(-pre-commit)?$/"
69+
]
5870
},
5971
{
6072
"matchPackageNames": [

0 commit comments

Comments
 (0)