Skip to content
This repository was archived by the owner on Aug 3, 2026. It is now read-only.

Commit 44f22fa

Browse files
Pijukatelvdusek
andauthored
ci: Add minimal package age (#75)
- add minimal package age - properly setup renovatre lock file updates --------- Co-authored-by: Vlada Dusek <v.dusek96@gmail.com>
1 parent 1f96468 commit 44f22fa

2 files changed

Lines changed: 23 additions & 2 deletions

File tree

‎pyproject.toml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,16 @@ python-version = "3.10"
116116
[tool.ty.src]
117117
include = ["src", "tests", "scripts", "docs", "website"]
118118

119+
[tool.uv]
120+
# Minimal defense against supply-chain attacks.
121+
exclude-newer = "24 hours"
122+
123+
[tool.uv.exclude-newer-package]
124+
# Allow internal Apify packages to install immediately.
125+
apify-client = false
126+
apify_fingerprint_datapoints = false
127+
crawlee = false
128+
119129
# Run tasks with: uv run poe <task>
120130
[tool.poe.tasks]
121131
clean = "rm -rf .coverage .pytest_cache .ruff_cache .ty_cache build dist htmlcov"

‎renovate.json‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"lockFileMaintenance": {
99
"enabled": true,
1010
"automerge": true,
11-
"automergeType": "branch"
11+
"automergeType": "pr",
12+
"schedule": ["* 0-5 * * 1"]
1213
},
1314
"packageRules": [
1415
{
@@ -19,7 +20,17 @@
1920
"groupSlug": "dev-dependencies",
2021
"automerge": true,
2122
"automergeType": "branch"
23+
},
24+
{
25+
"matchPackageNames": ["@apify/*", "@crawlee/*", "apify", "apify-client", "apify-shared", "apify-fingerprint-datapoints", "crawlee", "got-scraping"],
26+
"minimumReleaseAge": "0 days"
27+
},
28+
{
29+
"matchUpdateTypes": ["lockFileMaintenance"],
30+
"minimumReleaseAgeBehaviour": "timestamp-optional"
2231
}
2332
],
24-
"schedule": ["before 7am every weekday"]
33+
"minimumReleaseAge": "1 day",
34+
"internalChecksFilter": "strict",
35+
"schedule": ["* 0-5 * * 2-5"]
2536
}

0 commit comments

Comments
 (0)