Skip to content

Commit 3227d75

Browse files
authored
✨ Ignore mypy and pytest caches when deploying (#54)
1 parent 5a9ef21 commit 3227d75

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/fastapi_cloud_cli/commands/deploy.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@ def _get_app_name(path: Path) -> str:
3535

3636

3737
def _should_exclude_entry(path: Path) -> bool:
38-
if ".venv" in path.parts:
39-
return True
38+
parts_to_exclude = [".venv", "__pycache__", ".mypy_cache", ".pytest_cache"]
4039

41-
if "__pycache__" in path.parts:
40+
if any(part in path.parts for part in parts_to_exclude):
4241
return True
4342

4443
if path.suffix == ".pyc":

0 commit comments

Comments
 (0)