Skip to content

Commit 04be7f5

Browse files
committed
fix: ruff check issues in check_misc_references.py
1 parent b8bb946 commit 04be7f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

misc/check_misc_references.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def load_import_file_mapping(misc_dir: Path) -> dict[str, list[str]]:
4141
if not mapping_file.exists():
4242
print(f"Error: Cannot find {mapping_file}")
4343
sys.exit(1)
44-
with open(mapping_file, "r", encoding="utf-8") as f:
44+
with open(mapping_file, encoding="utf-8") as f:
4545
return json.load(f)
4646

4747

@@ -80,7 +80,7 @@ def find_misc_references(notebook_path: Path) -> set[str]:
8080
Returns a set of referenced file names (without misc/ prefix).
8181
Excludes references that appear in write method contexts.
8282
"""
83-
with open(notebook_path, "r", encoding="utf-8") as f:
83+
with open(notebook_path, encoding="utf-8") as f:
8484
content = f.read()
8585

8686
# ipynb files are JSON format, double quotes in strings are escaped as \"

0 commit comments

Comments
 (0)