Skip to content

Commit

Permalink
fix: extend ignore patterns for build and check project commands (#39)
Browse files Browse the repository at this point in the history
* fix: extend ignore patterns for build and check project commands

* bump version to 1.3.1
  • Loading branch information
DavidVujic committed Jun 30, 2023
1 parent 1a00e34 commit 5fd134c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion poetry_multiproject_plugin/components/project/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def copy_packages(
shutil.copytree(
source,
to,
ignore=shutil.ignore_patterns("__pycache__", ".mypy_cache"),
ignore=shutil.ignore_patterns(
"__pycache__", ".venv", ".mypy_cache", ".git"
),
dirs_exist_ok=True,
)
7 changes: 6 additions & 1 deletion poetry_multiproject_plugin/components/project/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ def copy_project(project_file: Path, destination: Path) -> Path:
source,
destination,
ignore=shutil.ignore_patterns(
"*.pyc", "__pycache__", ".venv", ".mypy_cache", "node_modules"
"*.pyc",
"__pycache__",
".venv",
".mypy_cache",
"node_modules",
".git",
),
dirs_exist_ok=True,
)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "poetry-multiproject-plugin"
version = "1.3.0"
version = "1.3.1"
description = "A Poetry plugin that makes it possible to use relative package includes."
authors = ["David Vujic"]
homepage = "https://github.com/davidvujic/poetry-multiproject-plugin"
Expand Down

0 comments on commit 5fd134c

Please sign in to comment.