Skip to content

Commit

Permalink
fixed linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BrentBlanckaert committed Oct 27, 2024
1 parent 373b0c3 commit 1b80f28
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,14 @@ def test_valid_yaml_and_json():
def recursive_iter_dir(directory: Path) -> list[Path]:
yaml_and_json_files = []
for file in directory.iterdir():
if file.is_file() and not file.name.startswith("tsconfig") and (
file.name.endswith(".yml")
or file.name.endswith(".yaml")
or file.name.endswith(".json")
if (
file.is_file()
and not file.name.startswith("tsconfig")
and (
file.name.endswith(".yml")
or file.name.endswith(".yaml")
or file.name.endswith(".json")
)
):
yaml_and_json_files.append(file)
elif file.is_dir():
Expand Down

0 comments on commit 1b80f28

Please sign in to comment.