Skip to content
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

Merged
merged 1 commit into from
Jan 8, 2025
Merged

[ruff] Enable extra plugins #70

merged 1 commit into from
Jan 8, 2025

Conversation

Djailla
Copy link

@Djailla Djailla commented Jan 8, 2025

Enable extra plugins for ruff linting

@anisse
Copy link
Contributor

anisse commented Jan 8, 2025

A small tip: you should be able to run make check locally to run the checks on your computer. In the meantime I'm investigating why you can't run the default workflow automatically on push.

@Arno500 Arno500 merged commit 1607ed7 into criteo:main Jan 8, 2025
4 checks passed
@Djailla Djailla deleted the plugins branch January 8, 2025 20:03
Comment on lines 33 to 40
# 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
Copy link
Contributor

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 :-(

Copy link
Contributor

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

Arno500 added a commit that referenced this pull request Jan 9, 2025
Arno500 added a commit that referenced this pull request Jan 11, 2025
anisse pushed a commit that referenced this pull request Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants