Skip to content
Snippets Groups Projects
Commit ca6d1140 authored by Jakub Ziebinski's avatar Jakub Ziebinski Committed by Jakub Ziebinski
Browse files

Run pre-commit wax checks on CI

parent c9b4f232
No related branches found
No related tags found
1 merge request!230Implementation of the python wax interface
...@@ -59,6 +59,23 @@ build_wheel: ...@@ -59,6 +59,23 @@ build_wheel:
reports: reports:
dotenv: "build_wheel.env" dotenv: "build_wheel.env"
pre_commit_checks:
stage: static_code_analysis
extends: .pre_commit_checks_template
before_script:
- export PYPROJECT_DIR="$CI_PROJECT_DIR/python"
- export PRE_COMMIT_CONFIG="$PYPROJECT_DIR/.pre-commit-config.yaml"
- cd ${PYPROJECT_DIR}
- !reference [ .configuration_template, before_script ]
- poetry install --no-root
after_script:
- cd ${CI_PROJECT_DIR}
artifacts:
when: always
expire_in: 1 week
paths:
- python/poetry.lock
verify_poetry_lock_sanity: verify_poetry_lock_sanity:
extends: .verify_poetry_lock_sanity_template extends: .verify_poetry_lock_sanity_template
stage: static_code_analysis stage: static_code_analysis
......
...@@ -63,7 +63,7 @@ class Transaction(ITransaction): ...@@ -63,7 +63,7 @@ class Transaction(ITransaction):
else self._resolve_tapos_from_transaction(tapos_block_id) else self._resolve_tapos_from_transaction(tapos_block_id)
) )
if isinstance(tapos_block_id, ProtoTransaction): if isinstance(tapos_block_id, ProtoTransaction): # type: ignore[misc] # for CI to pass
self._target = deepcopy(tapos_block_id) self._target = deepcopy(tapos_block_id)
else: else:
self._target = proto_transaction( self._target = proto_transaction(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment