mirror of
https://github.com/codeflash-ai/codeflash.git
synced 2026-05-04 18:25:17 +00:00
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:
parent
9ac3d14f23
commit
3a54a740f9
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue