Skip to content

Commit ba4ae20

Browse files
chore(config): migrate config .github/renovate.json
1 parent a6c8d79 commit ba4ae20

File tree

1 file changed

+30
-13
lines changed

1 file changed

+30
-13
lines changed

.github/renovate.json

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,41 +19,58 @@
1919
"enabled": false
2020
},
2121
"pip_requirements": {
22-
"fileMatch": [
23-
"(^|/)requirements[\\w-]*\\.txt$"
22+
"managerFilePatterns": [
23+
"/(^|/)requirements[\\w-]*\\.txt$/"
2424
]
2525
},
26-
"regexManagers": [
26+
"customManagers": [
2727
{
28-
"fileMatch": ["^\\.pre-commit-config\\.yaml$"],
29-
"matchStrings": ["(?<depName>[\\w-]+)(?<currentValue>==[a-z0-9.]+)"],
28+
"customType": "regex",
29+
"managerFilePatterns": [
30+
"/^\\.pre-commit-config\\.yaml$/"
31+
],
32+
"matchStrings": [
33+
"(?<depName>[\\w-]+)(?<currentValue>==[a-z0-9.]+)"
34+
],
3035
"datasourceTemplate": "pypi"
3136
}
3237
],
33-
"labels": ["bot"],
38+
"labels": [
39+
"bot"
40+
],
3441
"packageRules": [
3542
{
36-
"matchFiles": ["test/requirements.txt"],
43+
"matchFileNames": [
44+
"test/requirements.txt"
45+
],
3746
"semanticCommitType": "test"
3847
},
3948
{
40-
"matchManagers": ["pre-commit"],
49+
"matchManagers": [
50+
"pre-commit"
51+
],
4152
"commitMessageTopic": "{{depName}}",
4253
"semanticCommitScope": "pre-commit"
4354
},
4455
{
45-
"matchPackagePatterns": ["(^|/)gitlint$"],
4656
"versioning": "pep440",
47-
"groupName": "gitlint"
57+
"groupName": "gitlint",
58+
"matchPackageNames": [
59+
"/(^|/)gitlint$/"
60+
]
4861
},
4962
{
50-
"matchPackageNames": ["perltidy/perltidy"],
63+
"matchPackageNames": [
64+
"perltidy/perltidy"
65+
],
5166
"versioning": "regex:^(?<major>\\d{8})$"
5267
},
5368
{
54-
"matchPackagePatterns": ["(^|/)ruff(-pre-commit)?$"],
5569
"groupName": "ruff",
56-
"versioning": "pep440"
70+
"versioning": "pep440",
71+
"matchPackageNames": [
72+
"/(^|/)ruff(-pre-commit)?$/"
73+
]
5774
},
5875
{
5976
"matchPackageNames": [

0 commit comments

Comments
 (0)