-
-
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
7f5104e
commit 8b2e208
Showing
9 changed files
with
206 additions
and
143 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
export UV_PYTHON_PREFERENCE=only-system | ||
export PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 | ||
export CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true | ||
|
||
.PHONY: help build fmt lint sync lock upgrade all test | ||
|
||
help: | ||
@echo "Available commands:" | ||
@echo " build - Build the project using uv" | ||
@echo " fmt - Format the code using ruff" | ||
@echo " lint - Lint the code using ruff" | ||
@echo " sync - Sync and compile the project using uv" | ||
@echo " lock - Lock dependencies using uv" | ||
@echo " upgrade - Upgrade dependencies using uv" | ||
@echo " all - Run lock, sync, fmt, lint, and test" | ||
@echo " test - Run tests using pytest" | ||
|
||
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 . |
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,5 +1,4 @@ | ||
from citiespy import random_city | ||
|
||
from tzfpy import get_tz | ||
|
||
# warmup lazy init | ||
|
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
Oops, something went wrong.