Skip to content

Commit

Permalink
build: fix poetry shell breaking in CI/CD
Browse files Browse the repository at this point in the history
minor tweaks to reduce coverage comment size
  • Loading branch information
achidlow committed Dec 14, 2023
1 parent beb544e commit 684defd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
if: inputs.run_checks
run: |
set -o pipefail
poetry shell
source $(poetry env info --path)/bin/activate
pre-commit run --all-files && git diff --exit-code
algokit localnet start
pytest
Expand Down
4 changes: 1 addition & 3 deletions src/puya/arc32.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,7 @@ def create_arc32_json(contract: CompiledContract) -> str:
"global": _encode_schema(metadata.global_state),
"local": _encode_schema(metadata.local_state),
},
"contract": _encode_arc4_contract(
metadata.name_override or metadata.class_name, metadata.description, arc4_methods
),
"contract": _encode_arc4_contract(metadata.name, metadata.description, arc4_methods),
"bare_call_config": _encode_bare_method_configs(bare_methods),
}
return json.dumps(_filter_none(app_spec), indent=4)
Expand Down
4 changes: 1 addition & 3 deletions src/puya/ir/visitor_mem_replacer.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ def apply(
cls,
blocks: Sequence[models.BasicBlock],
*,
find: Iterable[models.Register] | models.Register,
find: Iterable[models.Register],
replacement: models.Register,
) -> int:
if isinstance(find, models.Register):
find = [find]
replacer = cls(find=frozenset(find), replacement=replacement)
for block in blocks:
replacer.visit_block(block)
Expand Down

0 comments on commit 684defd

Please sign in to comment.