Skip to content

Commit 6fa6470

Browse files
authored
Revert "Revert "Switch to JSON5, add some initial comments (#8)" (#9)"
This reverts commit 37dbfb3.
1 parent 37dbfb3 commit 6fa6470

File tree

3 files changed

+84
-69
lines changed

3 files changed

+84
-69
lines changed

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
-w /workspace \
2525
ghcr.io/renovatebot/renovate:latest \
2626
renovate-config-validator \
27-
default.json
27+
default.json5

default.json

Lines changed: 0 additions & 68 deletions
This file was deleted.

default.json5

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
3+
4+
// Always enable the dependency dashboard.
5+
dependencyDashboard: true,
6+
7+
extends: [
8+
// https://docs.renovatebot.com/presets-config/#configbest-practices
9+
'config:best-practices',
10+
// https://docs.renovatebot.com/presets-helpers/#helperspingithubactiondigeststosemver
11+
'helpers:pinGitHubActionDigestsToSemver',
12+
],
13+
14+
// Default range strategy for dependencies.
15+
// NOTE: We override the range strategy from best-practices here (and below),
16+
// because it results in exceedingly noisy updates to non-lockfile dependency files.
17+
rangeStrategy: 'auto',
18+
19+
// Additionally, we set the range strategy for cargo to 'update-lockfile' to avoid
20+
// unnecessary updates to Cargo.toml files.
21+
cargo: {
22+
rangeStrategy: 'update-lockfile',
23+
},
24+
25+
// We apply a default blanket cooldown of 7 days to all dependencies.
26+
minimumReleaseAge: '7 days',
27+
28+
internalChecksFilter: 'strict',
29+
30+
// PR settings.
31+
// Our PRs are created immediately. We do this instead of not-pending because the latter
32+
// makes Renovate wait an additional 24 hours before creating the PR when there are no checks.
33+
prCreation: 'immediate',
34+
prHourlyLimit: 10,
35+
prConcurrentLimit: 5,
36+
37+
// Conventions: we generally don't use semantic commits, and we add an "internal" label to all dependency update PRs.
38+
semanticCommits: 'disabled',
39+
addLabels: ['internal'],
40+
41+
separateMajorMinor: false,
42+
43+
// These notifications are very noisy.
44+
suppressNotifications: ['prEditedNotification'],
45+
46+
// Lock file maintenance configuration
47+
lockFileMaintenance: {
48+
enabled: false,
49+
schedule: ['before 4am on monday'],
50+
},
51+
52+
packageRules: [
53+
// All lock file maintenance: group PRs by manager.
54+
{
55+
description: 'Group lockfile updates by manager',
56+
matchUpdateTypes: ['lockFileMaintenance'],
57+
groupName: '{{manager}} lockfile updates',
58+
commitMessageSuffix: 'for {{manager}}',
59+
},
60+
// Python: disable minimum release age for our own packages.
61+
{
62+
description: 'Disable minimum release age checks for our own Python packages',
63+
matchDatasources: ['pypi'],
64+
matchPackageNames: ['ruff', 'uv', 'ty'],
65+
minimumReleaseAge: null,
66+
},
67+
// pre-commit: disable minimum release age for our own pre-commit hooks.
68+
{
69+
description: 'Disable minimum release age checks for our own pre-commit hooks',
70+
matchManagers: ['pre-commit'],
71+
matchPackageNames: [
72+
'astral-sh/ruff-pre-commit',
73+
'astral-sh/uv-pre-commit',
74+
'astral-sh/ty-pre-commit',
75+
],
76+
},
77+
],
78+
79+
vulnerabilityAlerts: {
80+
enabled: true,
81+
vulnerabilityFixStrategy: 'lowest',
82+
},
83+
}

0 commit comments

Comments
 (0)