Closed
Description
The pathlib rules supported by ruff
could be extended with detection with os.listdir
:
import os
from pathlib import Path
p = Path(".")
print(os.listdir(p))
use instead:
from pathlib import Path
p = Path(".")
print(list(p.iterdir()))
The plugin has not been updated for two years. We've extended the plugin rules before using the PTH2XX
code.