Skip to content

Commit 9222140

Browse files
committed
chore: fix build issues
1 parent a022ba7 commit 9222140

File tree

4 files changed

+108
-9
lines changed

4 files changed

+108
-9
lines changed

poetry.lock

Lines changed: 95 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ readme = "README.md"
77
package-mode = false
88

99
[tool.poetry.dependencies]
10+
black = "*"
1011
python = "^3.12"
1112
algokit-utils = "^3.0.0"
1213
python-dotenv = "^1.0.0"
1314

1415
[tool.poetry.group.dev.dependencies]
16+
black = "^25.9.0"
1517
ruff = "^0.9.4"
1618
pytest = "^8.3.2"
1719
mypy = "^1.1.1"

tests/test_generators.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
"--",
3333
"hello_world",
3434
]
35+
JS_PKG_MGR_ARGS = ["algokit", "config", "js-package-manager", "npm"]
36+
PY_PKG_MGR_ARGS = ["algokit", "config", "py-package-manager", "poetry"]
3537

3638

3739
def _load_copier_yaml(path: Path) -> dict[str, str | bool | dict]:
@@ -133,7 +135,12 @@ def check_codebase(working_dir: Path, test_name: str) -> subprocess.CompletedPro
133135
content = src_path_pattern.sub("_src_path: <src>", content)
134136
copier_answers.write_text(content, "utf-8")
135137

136-
check_args = [BUILD_ARGS, BUILD_SINGLE_CONTRACT_ARGS]
138+
check_args = [
139+
JS_PKG_MGR_ARGS,
140+
PY_PKG_MGR_ARGS,
141+
BUILD_ARGS,
142+
BUILD_SINGLE_CONTRACT_ARGS,
143+
]
137144

138145
processed_questions = _load_copier_yaml(copier_answers)
139146
if processed_questions["preset_name"] == "production":

tests/test_templates.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
BUILD_ARGS = ["algokit", "project", "run", "build"]
2323
TEST_ARGS = ["algokit", "project", "run", "test"]
2424
LINT_ARGS = ["algokit", "project", "run", "lint"]
25+
JS_PKG_MGR_ARGS = ["algokit", "config", "js-package-manager", "npm"]
26+
PY_PKG_MGR_ARGS = ["algokit", "config", "py-package-manager", "poetry"]
2527

2628

2729
def _load_copier_yaml(path: Path) -> dict[str, str | bool | dict]:
@@ -120,7 +122,7 @@ def run_init(
120122
content = src_path_pattern.sub("_src_path: <src>", content)
121123
copier_answers.write_text(content, "utf-8")
122124

123-
check_args = [BUILD_ARGS]
125+
check_args = [JS_PKG_MGR_ARGS, PY_PKG_MGR_ARGS, BUILD_ARGS]
124126

125127
processed_questions = _load_copier_yaml(copier_answers)
126128
if processed_questions["preset_name"] == "production":

0 commit comments

Comments
 (0)