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

E265: does not raise for #: comment #947

Closed
jugmac00 opened this issue Jun 30, 2020 · 1 comment
Closed

E265: does not raise for #: comment #947

jugmac00 opened this issue Jun 30, 2020 · 1 comment

Comments

@jugmac00
Copy link

jugmac00 commented Jun 30, 2020

#: does not raise E265

a = print  #: neither raises E265

Flake8 version 3.15.1

pycodestyle --version
2.6.0
@asottile
Copy link
Member

this is intentional, #: comments are used for sphinx documentation

bad_prefix = symbol not in '#:' and (symbol.lstrip('#')[:1] or '#')

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

2 participants