Skip to content

Commit

Permalink
Add warning message in case that a test folder is present in the pack…
Browse files Browse the repository at this point in the history
…age (#280)
  • Loading branch information
marcelotrevisani authored Jan 17, 2022
1 parent bd12d84 commit 4902a52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions grayskull/strategy/py_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,10 @@ def get_test_imports(metadata: dict, default: Optional[str] = None) -> List:
if "/" in module or "." in module or module.startswith("_"):
continue
if module in ["test", "tests"]:
log.warning(
f"The package wrongfully added the test folder as a module ({module}),"
f" as a result that might result in conda clobber warnings."
)
continue
result.append(module)
if not result:
Expand Down

0 comments on commit 4902a52

Please sign in to comment.