Skip to content

Commit

Permalink
chore: renovate and precommit cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lmilbaum authored and nejch committed Oct 12, 2022
1 parent 531ee05 commit 153d373
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 22 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pre_commit.yml
Expand Up @@ -33,7 +33,8 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- run: pip install --upgrade -r requirements.txt -r requirements-lint.txt pre-commit
- name: Install pre-commit
run: pip install -r requirements-precommit.txt
- name: Run pre-commit install
run: pre-commit install
- name: pre-commit run all-files
Expand Down
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Expand Up @@ -44,3 +44,7 @@ repos:
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal
- repo: https://github.com/maxbrunet/pre-commit-renovate
rev: 32.201.2
hooks:
- id: renovate-config-validator
34 changes: 13 additions & 21 deletions .renovaterc.json
Expand Up @@ -4,39 +4,31 @@
":enablePreCommit",
"schedule:weekly"
],
"ignoreDeps": ["relekang/python-semantic-release"],
"pip_requirements": {
"fileMatch": ["^requirements(-[\\w]*)?\\.txt$"]
},
"regexManagers": [
{
"fileMatch": ["^tests\\/functional\\/fixtures\\/.env$"],
"matchStrings": ["GITLAB_TAG=(?<currentValue>.*?)\n"],
"fileMatch": [
"^tests\\/functional\\/fixtures\\/.env$"
],
"matchStrings": [
"GITLAB_TAG=(?<currentValue>.*?)\n"
],
"depNameTemplate": "gitlab/gitlab-ce",
"datasourceTemplate": "docker",
"versioningTemplate": "loose"
},
{
"fileMatch": ["^.pre-commit-config.yaml$"],
"matchStrings": ["- (?<depName>.*?)==(?<currentValue>.*?)\n"],
"datasourceTemplate": "pypi",
"versioningTemplate": "pep440"
}
],
"packageRules": [
{
"packagePatterns": ["^gitlab\/gitlab-.+$"],
"packagePatterns": [
"^gitlab\/gitlab-.+$"
],
"automerge": true
},
{
"matchPackagePrefixes": ["types-"],
"matchPackagePrefixes": [
"types-"
],
"groupName": "typing dependencies"
},
{
"matchPackagePatterns": ["(^|/)black$"],
"versioning": "pep440",
"ignoreUnstable": false,
"groupName": "black"
}
}
]
}
1 change: 1 addition & 0 deletions requirements-precommit.txt
@@ -0,0 +1 @@
pre-commit==2.20.0

0 comments on commit 153d373

Please sign in to comment.