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

N806 thinks a single _ is uppercase #560

Closed
tgross35 opened this issue Nov 3, 2022 · 1 comment · Fixed by #562
Closed

N806 thinks a single _ is uppercase #560

tgross35 opened this issue Nov 3, 2022 · 1 comment · Fixed by #562

Comments

@tgross35
Copy link
Contributor

tgross35 commented Nov 3, 2022

It looks like a single _ as a variable name gets considered uppercase for N806. I don't think this happens for names that start with an underscore, like _test

root@5d53afc0df87:/home# ruff test_n806.py --select N --no-cache
Found 1 error(s).
test_n806.py:3:8: N806 Variable `_` in function should be lowercase
def x():
    t = (1, 2)
    a, _ = t
@charliermarsh
Copy link
Member

Good catch! Going out in v0.0.97 (building now -- I had another quick fix to include anyway).

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 a pull request may close this issue.

2 participants