Skip to content

Commit 6a008bb

Browse files
authored
fix: poly check performance for large repos (#355)
* fix(parser): set the AST parser cache to grow indefinitely * bump Poetry plugin to 1.38.0 * bump CLI to 1.31.0
1 parent af30d4e commit 6a008bb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

components/polylith/imports/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def parse_imports(node: ast.AST) -> List[str]:
3030
return []
3131

3232

33-
@lru_cache
33+
@lru_cache(maxsize=None)
3434
def parse_module(path: Path) -> ast.AST:
3535
with open(path.as_posix(), "r", encoding="utf-8", errors="ignore") as f:
3636
tree = ast.parse(f.read(), path.name)

projects/poetry_polylith_plugin/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "poetry-polylith-plugin"
3-
version = "1.37.1"
3+
version = "1.38.0"
44
description = "A Poetry plugin that adds tooling support for the Polylith Architecture"
55
authors = ["David Vujic"]
66
homepage = "https://davidvujic.github.io/python-polylith-docs/"

projects/polylith_cli/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "polylith-cli"
3-
version = "1.30.1"
3+
version = "1.31.0"
44
description = "Python tooling support for the Polylith Architecture"
55
authors = ['David Vujic']
66
homepage = "https://davidvujic.github.io/python-polylith-docs/"

0 commit comments

Comments
 (0)