Skip to content

Add naming rule for instance variables  #216

@chjaesch

Description

@chjaesch

Regarding to the PEP8 namely conventions, method names and instance variables shall pass the function naming rules (lowercase with words separated by underscore): https://peps.python.org/pep-0008/#method-names-and-instance-variables
Therefore, it would be beneficial to regard this in pep8-naming by adding an naming rule for instance variables, similar to N806.

For example, self._fooVariable in

class AClass:

    def __init__(self) -> None:
        self._fooVariable = 42

should be reported.

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

    Issue actions