Skip to content

[internal]: Adopting/following more ruff complexity rules #2376

@dangotbanned

Description

@dangotbanned

Related

Description

All of the rules I'm linking have clear examples demonstrating why you'd use them.
The general theme they share is producing smaller and more generic functions/methods/classes.

The bad news is these aren't auto-fixes, but intended as a warning when you've written something that may be difficult for others to follow.

The good news is we can gradually introduce them via per-file-ignores.
See altair/pyproject.toml for an example of enabling a rule group for a single module.

Rules

Note

Feel free to add to these if you find any others

Adopt the following ignored rules:

Possibly adopt these preview rules:

More strictly follow rules we frequently # noqa: ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions