chore: finalize repo audit hygiene (#257)

This commit is contained in:
Elliot Chen
2026-06-06 13:59:12 +08:00
committed by GitHub
parent ab23e40b28
commit 00f1dfaec5
27 changed files with 459 additions and 199 deletions

View File

@ -3,10 +3,9 @@
from __future__ import annotations
import subprocess
import sys
from collections.abc import Iterable
from dataclasses import dataclass
from pathlib import PurePosixPath
from typing import Iterable
BLOCKED_DIR_NAMES = frozenset(
{
@ -94,11 +93,7 @@ def _tracked_paths() -> list[str]:
stdout=subprocess.PIPE,
text=False,
)
return [
raw.decode("utf-8")
for raw in result.stdout.split(b"\0")
if raw
]
return [raw.decode("utf-8") for raw in result.stdout.split(b"\0") if raw]
def main() -> int: