Closed
Description
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
Labels
No labels