Skip to content

Releases: DavidVujic/python-polylith

feat(poly check): report unused bricks in projects

07 Aug 07:52
a195509

Choose a tag to compare

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 --strict

When 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

05 Aug 09:49
ec73971

Choose a tag to compare

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

02 Aug 14:45
7c4c4b8

Choose a tag to compare

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

27 Jul 15:18
8c80a94

Choose a tag to compare

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

27 Jul 07:56
6a008bb

Choose a tag to compare

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

06 Jun 19:18
af30d4e

Choose a tag to compare

Add support for Hatch exclude patterns that are paths, with or without wildcards.

Details in #341 #342

feat(hatch): add partial support for configured exclude paths pattern

04 Jun 20:06
1787a35

Choose a tag to compare

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

04 May 14:41
fcea9a8

Choose a tag to compare

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

03 May 16:01
2a9d0a3

Choose a tag to compare

Fixing an issue with how affected bricks were collected.

Details in #331

feat(new command): poly test

03 May 14:18
72ebc08

Choose a tag to compare

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