Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Revise ruff.toml's extend select #240

@EGJ-Moorington

Description

@EGJ-Moorington

ruff.toml extends the selection of errors in extend-select, but some of those are part of the Ruff preview. I'm unsure if this is set up so that when the errors leave the preview they are enabled, or if the template should be modified so that Ruff is set to preview by default.

Rule F401 is commented in extend-select so that the try: import typing used by libraries doesn't get removed automatically by Ruff when running pre-commit. However, I believe both library makers and other users would benefit from having rule F401 uncommented. Library developers can add the comment # noqa: F401 to their import typing line so that it doesn't automatically get removed by Ruff.

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