chore: lint and type the remaining tools

This commit is contained in:
Abdessamad Derraz committed 2026-11-17 08:25:26 +01:00
1 parent 54521380dc
commit fe243ce8a8
11 files changed
+27 -31

No files matched your search

+2 -3
View File
@@ -29,6 +29,7 @@ Usage:
from __future__ import annotations
import argparse
import contextlib
import os
import re
import shutil
@@ -81,10 +82,8 @@ def busy_paths() -> set[str]:
if not pid.name.isdigit():
continue
links = [pid / "cwd"]
try:
with contextlib.suppress(OSError):
links += list((pid / "fd").iterdir())
except OSError:
pass
for link in links:
try:
found.add(os.readlink(link))