Skip to content

Commit 9469da5

Browse files
authored
Merge pull request #1050 from onekey-sec/renovate
Renovate integration
2 parents 53868af + 2c39db7 commit 9469da5

File tree

5 files changed

+40
-142
lines changed

5 files changed

+40
-142
lines changed

.github/workflows/update-nix.yml

-45
This file was deleted.

.github/workflows/update-vendored-nix-dependencies.py

-97
This file was deleted.

.pre-commit-config.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,9 @@ repos:
5454
name: Check Github actions
5555
- id: check-github-workflows
5656
name: Check Github workflows
57+
58+
- repo: https://github.com/renovatebot/pre-commit-hooks
59+
rev: 39.92.0
60+
hooks:
61+
- id: renovate-config-validator
62+
args: [--strict]

devenv.nix

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
with pkgs;
2323
[
2424
nvfetcher
25+
nodejs # for pyright and renovate
2526
]
2627
++ unblob.runtimeDeps;
2728

renovate.json

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["config:recommended"],
4+
"packageRules": [
5+
{
6+
"matchUpdateTypes": ["minor", "patch"],
7+
"autoApprove": true,
8+
"automerge": true
9+
}
10+
],
11+
"nix": {
12+
"enabled": true,
13+
"description": "opt-in support for nix https://docs.renovatebot.com/modules/manager/nix/#enabling",
14+
"lockFileMaintenance": {
15+
"enabled": true,
16+
"branchTopic": "update-flake-lock",
17+
"commitMessageAction": "Update flake.lock",
18+
"extends": ["schedule:earlyMondays"]
19+
}
20+
},
21+
"poetry": {
22+
"lockFileMaintenance": {
23+
"enabled": true,
24+
"branchTopic": "update-poetry-lock",
25+
"commitMessageAction": "Update poetry.lock",
26+
"extends": ["schedule:monthly"]
27+
}
28+
},
29+
"pre-commit": {
30+
"enabled": true,
31+
"description": "opt-in support for pre-commit https://docs.renovatebot.com/modules/manager/nix/#enabling"
32+
}
33+
}

0 commit comments

Comments
 (0)