ruff: enable RET/PIE/PLW

This commit is contained in:
Dima Gerasimov 2024-08-28 02:50:05 +01:00
parent 721a0cd3fc
commit 3cff067035
14 changed files with 80 additions and 75 deletions

View file

@ -100,7 +100,7 @@ def _walk_packages(path: Iterable[str], prefix: str='', onerror=None) -> Iterabl
def seen(p, m={}): # noqa: B006
if p in m:
return True
m[p] = True
m[p] = True # noqa: RET503
for info in pkgutil.iter_modules(path, prefix):
mname = info.name