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

RUF100 only removes noqa string when using names #4664

Closed
JannKleen opened this issue May 26, 2023 · 2 comments
Closed

RUF100 only removes noqa string when using names #4664

JannKleen opened this issue May 26, 2023 · 2 comments

Comments

@JannKleen
Copy link

JannKleen commented May 26, 2023

When having the following code:

def test():  # noqa: too-many-branches
  pass

RUF100 would only remove the noqa, leaving this:

def test():  # : too-many-branches
  pass

Edit:
The removal of the 'numeric' codes (i.e. # noqa: PLR0912) works as expected.

@JonathanPlasse
Copy link
Contributor

JonathanPlasse commented May 26, 2023

@charliermarsh
Copy link
Member

We don't support this right now, but we likely will in the future.

@charliermarsh charliermarsh closed this as not planned Won't fix, can't repro, duplicate, stale May 26, 2023
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

No branches or pull requests

3 participants