Skip to content

Add Ruff rule: invalid-function-name (N802) #1237

Description

@genedan

This rule enforces PEP 8 function naming conventions (snake_case). i.e.,

def myFunction():
    pass

Should be renamed

def my_function():
    pass

Functions flagged in the test suite can be safely renamed. Functions in the codebase would need to go through the deprecation process (or excluded from the rule if there's a good reason, i.e., API compatibility with a mirrored package).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Great First Contribution! 🌱Beginner friendly tickets with narrow scope and huge impact. Perfect to get your feet wet!

    Fields

    Priority

    None yet

    Effort

    None yet

    Scope

    None yet

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions