Skip to content

Commit

Permalink
chore: pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
bepri committed Dec 17, 2024
1 parent 83e424b commit e6c2d5e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_infra.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import pytest

# A list of bash file globs to not check for
IGNORE_GLOBS: set[str] = {"tests/spread/**/*.py"}
IGNORE_GLOBS = frozenset({"tests/spread/**/*.py"})


def get_python_filepaths() -> list[str]:
Expand All @@ -40,12 +40,11 @@ def get_python_filepaths() -> list[str]:
for source_dir in source_dirs:
# Loop over the source_dir recursively
# This is done instead of os.walk() to take advantage of Path.resolve()
for file in Path(source_dir).resolve().glob("**/*"):
for file in Path(source_dir).resolve().glob("**/*.py"):
if file in ignore_files:
continue

if file.name.endswith(".py"):
source_files.append(str(file))
source_files.append(str(file))

return source_files

Expand Down

0 comments on commit e6c2d5e

Please sign in to comment.