Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ruff's --fix returns a non-zero exit code even though there's only one fixable lint error. #341

Closed
snapdgn opened this issue Oct 7, 2022 · 2 comments · Fixed by #342
Closed
Assignees

Comments

@snapdgn
Copy link

snapdgn commented Oct 7, 2022

code snippet to reproduce the issue:

import json

def fn():
    pass

command: ruff . --fix

output: No pyproject.toml found. Falling back to default configuration... Found 0 error(s) (1 fixed).

echo $? gives 1(as exit code)

Image for reference:
image

@charliermarsh
Copy link
Member

Oh thanks! Will fix.

@charliermarsh
Copy link
Member

v0.0.58 is building now.

@snapdgn snapdgn changed the title ruff's --fix return a non-zero exit code even though there's only one fixable lint error. ruff's --fix returns a non-zero exit code even though there's only one fixable lint error. Oct 7, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants