style(ws5): ruff format handbook.py (CI ruff format --check)
This commit is contained in:
parent
a12de32a34
commit
47d7a81b6b
1 changed files with 3 additions and 1 deletions
|
|
@ -69,7 +69,9 @@ def load_handbook_conventions(path: Optional[Path | str] = None) -> str:
|
||||||
sections: list[str] = []
|
sections: list[str] = []
|
||||||
for fpath in files:
|
for fpath in files:
|
||||||
try:
|
try:
|
||||||
raw = fpath.read_bytes()[:_MAX_FILE_BYTES].decode("utf-8", errors="replace")
|
raw = fpath.read_bytes()[:_MAX_FILE_BYTES].decode(
|
||||||
|
"utf-8", errors="replace"
|
||||||
|
)
|
||||||
sections.append(f"### {fpath.stem}\n{raw.strip()}")
|
sections.append(f"### {fpath.stem}\n{raw.strip()}")
|
||||||
except Exception: # noqa: BLE001 - safe no-op
|
except Exception: # noqa: BLE001 - safe no-op
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Reference in a new issue