Skip to content

Commit 153d373

Browse files
Liora Milbaumnejch
authored andcommitted
chore: renovate and precommit cleanup
1 parent 531ee05 commit 153d373

File tree

4 files changed

+20
-22
lines changed

4 files changed

+20
-22
lines changed

.github/workflows/pre_commit.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ jobs:
3333
- uses: actions/setup-python@v4
3434
with:
3535
python-version: "3.10"
36-
- run: pip install --upgrade -r requirements.txt -r requirements-lint.txt pre-commit
36+
- name: Install pre-commit
37+
run: pip install -r requirements-precommit.txt
3738
- name: Run pre-commit install
3839
run: pre-commit install
3940
- name: pre-commit run all-files

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,7 @@ repos:
4444
- id: rst-backticks
4545
- id: rst-directive-colons
4646
- id: rst-inline-touching-normal
47+
- repo: https://github.com/maxbrunet/pre-commit-renovate
48+
rev: 32.201.2
49+
hooks:
50+
- id: renovate-config-validator

.renovaterc.json

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,31 @@
44
":enablePreCommit",
55
"schedule:weekly"
66
],
7-
"ignoreDeps": ["relekang/python-semantic-release"],
8-
"pip_requirements": {
9-
"fileMatch": ["^requirements(-[\\w]*)?\\.txt$"]
10-
},
117
"regexManagers": [
128
{
13-
"fileMatch": ["^tests\\/functional\\/fixtures\\/.env$"],
14-
"matchStrings": ["GITLAB_TAG=(?<currentValue>.*?)\n"],
9+
"fileMatch": [
10+
"^tests\\/functional\\/fixtures\\/.env$"
11+
],
12+
"matchStrings": [
13+
"GITLAB_TAG=(?<currentValue>.*?)\n"
14+
],
1515
"depNameTemplate": "gitlab/gitlab-ce",
1616
"datasourceTemplate": "docker",
1717
"versioningTemplate": "loose"
18-
},
19-
{
20-
"fileMatch": ["^.pre-commit-config.yaml$"],
21-
"matchStrings": ["- (?<depName>.*?)==(?<currentValue>.*?)\n"],
22-
"datasourceTemplate": "pypi",
23-
"versioningTemplate": "pep440"
2418
}
2519
],
2620
"packageRules": [
2721
{
28-
"packagePatterns": ["^gitlab\/gitlab-.+$"],
22+
"packagePatterns": [
23+
"^gitlab\/gitlab-.+$"
24+
],
2925
"automerge": true
3026
},
3127
{
32-
"matchPackagePrefixes": ["types-"],
28+
"matchPackagePrefixes": [
29+
"types-"
30+
],
3331
"groupName": "typing dependencies"
34-
},
35-
{
36-
"matchPackagePatterns": ["(^|/)black$"],
37-
"versioning": "pep440",
38-
"ignoreUnstable": false,
39-
"groupName": "black"
40-
}
32+
}
4133
]
4234
}

requirements-precommit.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pre-commit==2.20.0

0 commit comments

Comments
 (0)