Skip to content

Commit c7d075e

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

File tree

1 file changed

+26
-11
lines changed

1 file changed

+26
-11
lines changed

.github/renovate.json

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,52 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": [
4-
"github>scop/common",
4+
"github>scop/common"
55
],
66
"pip_requirements": {
7-
"fileMatch": ["(^|/)requirements[\\w-]*\\.txt$"]
7+
"managerFilePatterns": [
8+
"/(^|/)requirements[\\w-]*\\.txt$/"
9+
]
810
},
9-
"regexManagers": [
11+
"customManagers": [
1012
{
11-
"fileMatch": ["^\\.pre-commit-config\\.yaml$"],
12-
"matchStrings": ["(?<depName>[\\w-]+)(?<currentValue>==[a-z0-9.]+)"],
13+
"customType": "regex",
14+
"managerFilePatterns": [
15+
"/^\\.pre-commit-config\\.yaml$/"
16+
],
17+
"matchStrings": [
18+
"(?<depName>[\\w-]+)(?<currentValue>==[a-z0-9.]+)"
19+
],
1320
"datasourceTemplate": "pypi"
1421
}
1522
],
1623
"packageRules": [
1724
{
18-
"matchFiles": ["requirements-test.txt"],
25+
"matchFileNames": [
26+
"requirements-test.txt"
27+
],
1928
"semanticCommitType": "test"
2029
},
2130
{
22-
"matchManagers": ["pre-commit"],
31+
"matchManagers": [
32+
"pre-commit"
33+
],
2334
"commitMessageTopic": "{{depName}}",
2435
"semanticCommitScope": "pre-commit"
2536
},
2637
{
27-
"matchPackagePatterns": ["(^|/)gitlint$"],
2838
"groupName": "gitlint",
29-
"versioning": "pep440"
39+
"versioning": "pep440",
40+
"matchPackageNames": [
41+
"/(^|/)gitlint$/"
42+
]
3043
},
3144
{
32-
"matchPackagePatterns": ["(^|/)ruff(-pre-commit)?$"],
3345
"groupName": "ruff",
34-
"versioning": "pep440"
46+
"versioning": "pep440",
47+
"matchPackageNames": [
48+
"/(^|/)ruff(-pre-commit)?$/"
49+
]
3550
}
3651
]
3752
}

0 commit comments

Comments
 (0)