-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67bacc3
commit b6337bd
Showing
2 changed files
with
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
export PYTHONPATH := $(shell pwd) | ||
export UV_PYTHON_PREFERENCE=only-system | ||
export PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 | ||
export CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true | ||
|
||
build: | ||
uv build | ||
|
||
fmt: | ||
uv run ruff check --select I --fix . | ||
uv run ruff format . | ||
|
||
lint: | ||
uv run ruff check . | ||
uv run ruff format --check . | ||
|
||
sync: | ||
uv sync --compile | ||
|
||
lock: | ||
uv lock | ||
|
||
upgrade: | ||
uv lock --upgrade | ||
|
||
all: lock sync | ||
make fmt | ||
make lint | ||
make test | ||
|
||
test: lint | ||
uv run pytest -v . |