Skip to content

Commit

Permalink
Support env variable to avoid chicken/egg problem
Browse files Browse the repository at this point in the history
  • Loading branch information
castrapel committed Mar 14, 2023
1 parent b3f2d7f commit 1f03d45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iambic/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ async def gather_templates(repo_dir: str, template_type: str = None) -> list[str

file_paths = await gather_limit(
*[file_regex_search(fp, regex_pattern) for fp in file_paths],
limit=10,
limit=int(os.environ.get("IAMBIC_GATHER_TEMPLATES_LIMIT", 10)),
)
return [fp for fp in file_paths if fp]

Expand Down

0 comments on commit 1f03d45

Please sign in to comment.