Skip to content

File handling in Python #11133

File handling in Python

File handling in Python #11133

Triggered via pull request October 14, 2024 18:58
Status Failure
Total duration 17s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors
Ruff (INP001): file_handling/read_file.py#L1
file_handling/read_file.py:1:1: INP001 File `file_handling/read_file.py` is part of an implicit namespace package. Add an `__init__.py`.
Ruff (UP015): file_handling/read_file.py#L3
file_handling/read_file.py:3:10: UP015 Unnecessary open mode parameters
Ruff (SIM115): file_handling/read_file.py#L3
file_handling/read_file.py:3:10: SIM115 Use a context manager for opening files
Ruff (F821): file_handling/read_file.py#L15
file_handling/read_file.py:15:16: F821 Undefined name `__main__`
ruff
Process completed with exit code 1.