Skip to content

File handling in Python #11132

File handling in Python

File handling in Python #11132

Triggered via pull request October 14, 2024 18:57
Status Failure
Total duration 14s
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:8: UP015 Unnecessary open mode parameters
Ruff (SIM115): file_handling/read_file.py#L3
file_handling/read_file.py:3:8: SIM115 Use a context manager for opening files
Ruff (F821): file_handling/read_file.py#L14
file_handling/read_file.py:14:16: F821 Undefined name `__main__`
ruff
Process completed with exit code 1.