Skip to content

[PT013] Rationale is unconvincing. #11247

Closed
@randolf-scholz

Description

@randolf-scholz

Rule PT013 seems arbitrary. The rationale states:

pytest should be imported as import pytest and its members should be accessed in the form of pytest.xxx.yyy for consistency and to make it easier for linting tools to analyze the code.

But the same reasoning "make it easier for linting tools to analyze the code" could be applied to any library.

What are some concrete linting tools this applies to? If it makes no difference to ruff, should this be enabled by default in 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