style: rename _BUILD_FILES to build_files to fix ruff N806

Co-authored-by: Hesham Mohamed <undefined@users.noreply.github.com>
This commit is contained in:
claude[bot] 2026-04-03 13:44:41 +00:00
parent 9ac3d14f23
commit 3a54a740f9

View file

@ -226,17 +226,17 @@ def _scan_filesystem_for_modules(directory: Path) -> list[str]:
file uses complex DSL that text-based parsing cannot handle.
"""
modules: list[str] = []
_BUILD_FILES = ("build.gradle", "build.gradle.kts", "pom.xml")
build_files = ("build.gradle", "build.gradle.kts", "pom.xml")
for child in directory.iterdir():
if not child.is_dir() or child.name.startswith("."):
continue
if any((child / bf).exists() for bf in _BUILD_FILES):
if any((child / bf).exists() for bf in build_files):
modules.append(child.name)
# One level deeper for nested modules (connect/runtime)
for grandchild in child.iterdir():
if not grandchild.is_dir() or grandchild.name.startswith("."):
continue
if any((grandchild / bf).exists() for bf in _BUILD_FILES):
if any((grandchild / bf).exists() for bf in build_files):
rel = grandchild.relative_to(directory)
modules.append(str(rel).replace(os.sep, ":"))
return modules