Skip to content

Commit a5a1b96

Browse files
authored
Merge pull request #880 from scop/ci/renovate-tweaks
ci: renovate config tweaks
2 parents 7a4f933 + 23707b8 commit a5a1b96

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

.github/renovate.json

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": [
44
"config:base",
5+
":enablePreCommit",
56
":prConcurrentLimit20",
67
":preserveSemverRanges",
78
":semanticPrefixChore"
@@ -13,17 +14,21 @@
1314
],
1415
"semanticCommits": "enabled",
1516
"commitMessageTopic": "{{depName}}",
16-
"pip_requirements": {
17-
"fileMatch": [
18-
"(^|/)(test/requirements[\\w-]*\\.txt|\\.pre-commit-config\\.yaml)$"
19-
]
20-
},
2117
"dockerfile": {
2218
"enabled": false
2319
},
24-
"pre-commit": {
25-
"enabled": true
20+
"pip_requirements": {
21+
"fileMatch": [
22+
"(^|/)requirements[\\w-]*\\.txt$"
23+
]
2624
},
25+
"regexManagers": [
26+
{
27+
"fileMatch": ["^\\.pre-commit-config\\.yaml$"],
28+
"matchStrings": ["(?<depName>[\\w-]+)(?<currentValue>==[a-z0-9.]+)"],
29+
"datasourceTemplate": "pypi"
30+
}
31+
],
2732
"packageRules": [
2833
{
2934
"matchFiles": ["test/requirements.txt"],

.github/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
-r ../test/requirements-dev.txt
22

3-
gitlint ==0.18.0
3+
gitlint==0.18.0

.pre-commit-config.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ repos:
6363
name: mypy
6464
language: python
6565
additional_dependencies:
66-
-
67-
venv-run ==0.1.0
66+
- venv-run==0.1.0
6867
entry: venv-run mypy
6968
args: [--config-file=test/setup.cfg]
7069
types: [python]

test/requirements-dev.txt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22

33
-r requirements.txt
44

5-
black ==23.1.0
6-
7-
mypy ==0.971
8-
9-
pre-commit >=2.4.0
10-
11-
ruff ==0.0.247
5+
black==23.1.0
6+
mypy==0.971
7+
pre-commit>=2.4.0
8+
ruff==0.0.247

test/requirements.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Python >= 3.6 required here
22

3-
pexpect >=4
4-
5-
pytest >=3.6
6-
pytest-xdist
3+
pexpect>=4
4+
pytest>=3.6
5+
pytest-xdist

0 commit comments

Comments
 (0)