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

Bug in RUF100 autofixer #2379

Closed
stinodego opened this issue Jan 31, 2023 · 2 comments · Fixed by #2392
Closed

Bug in RUF100 autofixer #2379

stinodego opened this issue Jan 31, 2023 · 2 comments · Fixed by #2392
Assignees
Labels
bug Something isn't working

Comments

@stinodego
Copy link
Contributor

stinodego commented Jan 31, 2023

Using all default settings and select = ["RUF"], the following noqa statement is incorrectly fixed.

Before:

"shape:  (6,)\nSeries: '' [duration[μs]]\n[\n\t0µs\n\t1µs\n\t2µs\n\t3µs\n\t4µs\n\t5µs\n]"  # noqa: E501

After:

"shape:  (6,)\nSeries: '' [duration[μs]]\n[\n\t0µs\n\t1µs\n\t2µs\n\t3µs\n\t4µs\n\t5µs\n]"  # noq

I'm on Ruff version 0.0.237, Python 3.11.0.

@stinodego stinodego changed the title Bug in Bug in RUF100 Jan 31, 2023
@stinodego stinodego changed the title Bug in RUF100 Bug in RUF100 autofixer Jan 31, 2023
@charliermarsh charliermarsh added the bug Something isn't working label Jan 31, 2023
@charliermarsh
Copy link
Member

Thank you for filing!

@stinodego
Copy link
Contributor Author

I was surprised, as I hadn't run into a bug yet. Keep up the good work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants