Skip to content

Commit 9335a11

Browse files
vdusekclaude
andauthored
chore: Add Renovate bot for automated dependency updates (#59)
- Add renovate.json configuration same as we have in other projects. - Relax dev dependency version constraints in pyproject.toml. - Update typos action to use major version v1. Resolves security alerts: - https://github.com/apify/apify-shared-python/security/dependabot/1 - https://github.com/apify/apify-shared-python/security/dependabot/2 - https://github.com/apify/apify-shared-python/security/dependabot/3 --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f0ec030 commit 9335a11

File tree

5 files changed

+272
-216
lines changed

5 files changed

+272
-216
lines changed

.github/workflows/_check_code.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Checkout repository
2525
uses: actions/checkout@v6
2626
- name: Check spelling with typos
27-
uses: crate-ci/typos@v1.40.0
27+
uses: crate-ci/typos@v1
2828

2929
lint_check:
3030
name: Lint check

pyproject.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ dependencies = []
4343

4444
[dependency-groups]
4545
dev = [
46-
"dycw-pytest-only~=2.1.0",
46+
"dycw-pytest-only<3.0.0",
4747
"poethepoet<1.0.0",
48-
"pre-commit~=4.3.0",
49-
"pytest-asyncio~=1.1.0",
50-
"pytest-cov~=6.2.0",
51-
"pytest-timeout~=2.4.0",
52-
"pytest-xdist~=3.8.0",
53-
"pytest~=8.4.0",
54-
"ruff~=0.12.0",
48+
"pre-commit<5.0.0",
49+
"pytest-asyncio<2.0.0",
50+
"pytest-cov<8.0.0",
51+
"pytest-timeout<3.0.0",
52+
"pytest-xdist<4.0.0",
53+
"pytest<9.0.0",
54+
"ruff~=0.14.0",
5555
"setuptools", # setuptools are used by pytest, but not explicitly required
5656
"ty~=0.0.0",
5757
]

renovate.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"extends": ["config:base", ":semanticCommitTypeAll(chore)"],
3+
"ignorePaths": ["docs/**"],
4+
"pinVersions": false,
5+
"separateMajorMinor": false,
6+
"dependencyDashboard": false,
7+
"semanticCommits": "enabled",
8+
"lockFileMaintenance": {
9+
"enabled": true,
10+
"automerge": true,
11+
"automergeType": "branch"
12+
},
13+
"packageRules": [
14+
{
15+
"matchPaths": ["pyproject.toml"],
16+
"matchDepTypes": ["devDependencies"],
17+
"matchUpdateTypes": ["major", "minor"],
18+
"groupName": "major/minor dev dependencies",
19+
"groupSlug": "dev-dependencies",
20+
"automerge": true,
21+
"automergeType": "branch"
22+
}
23+
],
24+
"schedule": ["before 7am every weekday"]
25+
}

tests/unit/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ def test_create_storage_content_signature_with_expiration() -> None:
5858
expires_in_millis=10000,
5959
)
6060

61-
version, expires_at, hmac = base64.urlsafe_b64decode(signature).decode('utf-8').split('.')
61+
version, expires_at, _ = base64.urlsafe_b64decode(signature).decode('utf-8').split('.')
6262
assert version == '0'
6363
assert expires_at != '0'

0 commit comments

Comments
 (0)