DavidVujic / poetry-multiproject-plugin

A Poetry plugin that makes it simple to share code between projects in monorepos.
https://davidvujic.github.io/python-polylith-docs/installation/
MIT License
190 stars 7 forks source link

feat: use configured exclude patterns #63

Closed DavidVujic closed 3 months ago

DavidVujic commented 3 months ago

Description

Use any configured tool.poetry.exclude patterns when building projects.

Poetry docs about the exclude property: https://python-poetry.org/docs/pyproject/#include-and-exclude

NOTE: this Pull Request unifies the already existing default exclude patterns. Before, they differed between the "copy project" and "copy packages" (didn't include *.pyc and node_modules) actions.

Also: unifies the call to shutil.copytree with strings as source and destination parameters.

Motivation and Context

fixes #62

How Has This Been Tested?

✅ CI ✅ Unit tests ✅ Local install and run of the build-project command

Types of changes

Checklist:

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud