We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
fmt: off
else:
RUF028 claims that the second fmt: off is illegal (the first one is fine). Both are actually respected by the formatter though.
Expecation: RUF028 should not trigger.
def f(a, b): if not a: # fmt: off a = b or bytes( [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ] ) else: # fmt: off a = b or bytes( [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ] )
https://play.ruff.rs/719df52a-6744-4230-8cf8-ed64a512143c
Ruff: 0.3.0
The text was updated successfully, but these errors were encountered:
Thanks for reporting. That's a bug. I think #10178 fixed it but I let @snowsignal confirm
Sorry, something went wrong.
Ah, nice. I only saw the title of the issue and not the PR summary that suggests this was fixed indeed.
This should be fixed by #10178 in the next release. I confirmed that your code passes without issue on the latest version of the Ruff playground.
snowsignal
No branches or pull requests
RUF028 claims that the second
fmt: off
is illegal (the first one is fine). Both are actually respected by the formatter though.Expecation: RUF028 should not trigger.
https://play.ruff.rs/719df52a-6744-4230-8cf8-ed64a512143c
Ruff: 0.3.0
The text was updated successfully, but these errors were encountered: