Skip to content

Commit 7261066

Browse files
committed
fix: add strict=False to zip() call to fix ruff B905 error
- Add explicit strict=False parameter to zip() in exporters.py - Add FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 to address Node.js deprecation warnings
1 parent 3224cad commit 7261066

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [main, develop]
88

9+
env:
10+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
11+
912
jobs:
1013
test:
1114
runs-on: ubuntu-latest

bookmark_checker/core/exporters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def export_netscape_html(collection: BookmarkCollection, path: str) -> None:
5151

5252
# Find common prefix with current path
5353
common_length = 0
54-
for i, (part1, part2) in enumerate(zip(current_path_parts, folder_parts)):
54+
for i, (part1, part2) in enumerate(zip(current_path_parts, folder_parts, strict=False)):
5555
if part1 == part2:
5656
common_length = i + 1
5757
else:

0 commit comments

Comments
 (0)