Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wax
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
wax
Commits
ca6d1140
Commit
ca6d1140
authored
3 months ago
by
Jakub Ziebinski
Committed by
Jakub Ziebinski
4 weeks ago
Browse files
Options
Downloads
Patches
Plain Diff
Run pre-commit wax checks on CI
parent
c9b4f232
No related branches found
Branches containing commit
No related tags found
1 merge request
!230
Implementation of the python wax interface
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+17
-0
17 additions, 0 deletions
.gitlab-ci.yml
python/wax/_private/transaction.py
+1
-1
1 addition, 1 deletion
python/wax/_private/transaction.py
with
18 additions
and
1 deletion
.gitlab-ci.yml
+
17
−
0
View file @
ca6d1140
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
python/wax/_private/transaction.py
+
1
−
1
View file @
ca6d1140
...
@@ -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
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment