Releases: DavidVujic/python-polylith
feat(poly check): report unused bricks in projects
Adding a feature to the poly check command: report any unused bricks in projects.
In case a project includes a brick that is no longer needed, this new feature will report on it. Currently, it is only information and won't return with a fail exit code.
Usage, examples:
# poetry
poetry poly check --strict
# uv (or any of your favorite package & dependency management tool)
uv run poly check --strictWhen there's a brick not used in a specific project, the output will be:
🔎 Is <the_brick> needed in <the_project>?Implementation details in #360
fix(poly check): dependency lookup performance improvements
Improving the performance of the poly check command.
Details in #359
fix(rewrite): add module name to alias for plain imports and when not already using alias
Fixing an issue with rewriting the top namespace for bricks, when the brick is imported as: import the_namespace
Details in #358
fix: poly check improve performance for large repos
The poly check command performs AST parsing to find any missing bricks or third-party imports. A module that already have been parsed should be cached during the session. This is done since before, but the caching has moved up a layer to avoid re-running AST walking and import analysis for the same module.
Details in #356
This is a continuation of #355
fix: poly check performance for large repos
The poly check command performs AST parsing to find any missing bricks or third-party imports. A module that already have been parsed should be cached during the session. This is done since before, but with the default max size of lru_cache. For large Polylith workspaces, the cache need to be bigger.
Details in #355
feat(hatch hook): add support for exclude patterns as paths with wildcards
feat(hatch): add partial support for configured exclude paths pattern
Adding partial support for exclude patterns in Hatch. The feature is not yet complete, and being worked on at the moment.
Details in #339
feat(CLI): display help page in case of missing arguments
Show the CLI help page for commands with missing arguments. A nice addition to the UX of the CLI!
Thank you @maxalbert for contributing to the Python tools for the Polylith Architecture ⭐
fix(poly test): collecting affected bricks
Fixing an issue with how affected bricks were collected.
Details in #331
feat(new command): poly test
Adding a new command: poly test
The command is to be used with a sub-command: poly test diff
Read about use cases and details in #330