-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Clean before building each set of wheels to ensure that wheels compiled for non x86 linux architectures run correctly - Add a justfile to make cleaning, linting, testing etc. easier
- Loading branch information
1 parent
ce45da7
commit 52ac846
Showing
6 changed files
with
55 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.3.0 | ||
1.3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# list available recipes | ||
list: | ||
@just --list --justfile {{justfile()}} | ||
|
||
# remove pre-built rust and python libraries (excluding .venv) | ||
clean: | ||
cargo clean | ||
rm -rf .pytest_cache | ||
find . -depth -type d -not -path "./.venv/*" -name "__pycache__" -exec rm -rf "{}" \; | ||
find . -depth -type d -path "*.egg-info" -exec rm -rf "{}" \; | ||
find . -type f -name "*.egg" -delete | ||
find . -type f -name "*.so" -delete | ||
|
||
# clean, remove existing .venv and rebuild the venv with pip install -e .[dev] | ||
reset: clean | ||
rm -rf .venv | ||
python -m venv .venv | ||
. .venv/bin/activate | ||
python -m pip install --upgrade pip | ||
pip install -e .[dev] | ||
|
||
# lint rust files with fmt & clippy | ||
lint-rust: | ||
- cargo fmt --check | ||
- cargo clippy --workspace | ||
|
||
# test rust workspace | ||
test-rust: | ||
- cargo test --quiet --workspace | ||
|
||
# lint and test rust | ||
check-rust: lint-rust test-rust | ||
|
||
# lint python with ruff | ||
lint-python: | ||
- ruff check . | ||
|
||
# test python | ||
test-python: | ||
- pytest | ||
|
||
# lint and test python | ||
check-python: lint-python test-python | ||
|
||
# lint and test both rust and python | ||
check: check-rust check-python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters