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

B018 does not detect module level useless expressions #267

Closed
graingert opened this issue Jul 1, 2022 · 2 comments
Closed

B018 does not detect module level useless expressions #267

graingert opened this issue Jul 1, 2022 · 2 comments

Comments

@graingert
Copy link
Member

graingert commented Jul 1, 2022

with the following:

def ham():
    pass


["hello", "world"]

when running pipx run --spec="flake8-bugbear" flake8 fluke8.py --include="B018", I expected to see:

flake8.py:5:1: B018 Found useless expression. Either assign it to a variable or remove it.
@r-downing
Copy link
Contributor

ok to close?

@cooperlees
Copy link
Collaborator

Thanks for noting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants