In the following case, a static method is called from within the class definition.
That should be allowed, and from subclasses too.
Calls to private methods should also be allowed from within the class definition.
class TestSLF001:
@staticmethod
def _protected() -> None:
pass
def public() -> None:
TestSLF001._protected()
ruff check --select ALL --ignore D103,TCH003,D testslf001.py
ruff 0.0.245
pyproject.toml snippet:
[tool.ruff]
select = ["ALL"]
line-length = 120
target-version = "py311"