Skip to content

Commit 3a54a74

Browse files
github-actions[bot]Hesham Mohamed
andcommitted
style: rename _BUILD_FILES to build_files to fix ruff N806
Co-authored-by: Hesham Mohamed <undefined@users.noreply.github.com>
1 parent 9ac3d14 commit 3a54a74

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

codeflash/languages/java/test_runner.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,17 +226,17 @@ def _scan_filesystem_for_modules(directory: Path) -> list[str]:
226226
file uses complex DSL that text-based parsing cannot handle.
227227
"""
228228
modules: list[str] = []
229-
_BUILD_FILES = ("build.gradle", "build.gradle.kts", "pom.xml")
229+
build_files = ("build.gradle", "build.gradle.kts", "pom.xml")
230230
for child in directory.iterdir():
231231
if not child.is_dir() or child.name.startswith("."):
232232
continue
233-
if any((child / bf).exists() for bf in _BUILD_FILES):
233+
if any((child / bf).exists() for bf in build_files):
234234
modules.append(child.name)
235235
# One level deeper for nested modules (connect/runtime)
236236
for grandchild in child.iterdir():
237237
if not grandchild.is_dir() or grandchild.name.startswith("."):
238238
continue
239-
if any((grandchild / bf).exists() for bf in _BUILD_FILES):
239+
if any((grandchild / bf).exists() for bf in build_files):
240240
rel = grandchild.relative_to(directory)
241241
modules.append(str(rel).replace(os.sep, ":"))
242242
return modules

0 commit comments

Comments
 (0)