Skip to content

E265: does not raise for #: comment #947

@jugmac00

Description

@jugmac00
#: does not raise E265

a = print  #: neither raises E265

Flake8 version 3.15.1

pycodestyle --version
2.6.0

Activity

asottile

asottile commented on Jun 30, 2020

@asottile
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @asottile@jugmac00

        Issue actions

          E265: does not raise for `#: comment` · Issue #947 · PyCQA/pycodestyle