Skip to content

Commit

Permalink
fix(ci): poetry lockfile (#732)
Browse files Browse the repository at this point in the history
- Fixes poetry lockfile and adds pre-commit hook to prevent issue from
happening
  • Loading branch information
Yohe-Am authored May 22, 2024
1 parent 01333b9 commit 24963ce
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 18 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ jobs:
wasm-opt -Oz target/wasm/wasm32-unknown-unknown/release/typegraph_core.wasm -o $WASM_FILE.opt
wasm-tools component new $WASM_FILE.opt -o $WASM_FILE
python3 -m venv .venv
source .venv/bin/activate
poetry install --no-root
poetry run python -m wasmtime.bindgen $WASM_FILE --out-dir typegraph/python/typegraph/gen
Expand Down
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
repos:
- repo: local
hooks:
- id: poetry-lock
name: "Check poetry lock"
always_run: true
language: system
entry: bash -c 'poetry check --lock'
pass_filenames: false
- id: poetry-lock-typegraph
name: "Check typegraph poetry lock"
always_run: true
language: system
entry: bash -c 'poetry -C ./typegraph/python check --lock'
pass_filenames: false
- id: version
name: "Lock versions"
always_run: true
Expand Down
18 changes: 9 additions & 9 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions typegraph/python/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 24963ce

Please sign in to comment.