-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ruff] Enable extra plugins #70
Conversation
A small tip: you should be able to run |
# may raise tarfile.ReadError if tarfilename is not a tar file | ||
tarfd = tarfile.open(tarfilename, "r") | ||
try: | ||
with tarfile.open(tarfilename, "r") as tarfd: | ||
file = tarfd.extractfile(filename) | ||
if not file: | ||
tarfd.close() | ||
return None | ||
ret = file.read(-1) | ||
tarfd.close() | ||
return ret |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You lost the initial error handling :-(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woops, did not catch this one. Fixed in #71
This was removed in #70 mistakenly
This was removed in #70 mistakenly
This was removed in #70 mistakenly
Enable extra plugins for ruff linting