-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Convert from poetry to uv.
- Loading branch information
Showing
13 changed files
with
2,501 additions
and
3,102 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ version: 2 | |
build: | ||
os: ubuntu-20.04 | ||
tools: | ||
python: "3.9" | ||
python: "3.10" | ||
|
||
python: | ||
install: | ||
|
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,28 +1,26 @@ | ||
.PHONY: install build test lint format | ||
.PHONY: install test lint format | ||
.DEFAULT_GOAL := help | ||
|
||
WORKER_COUNT ?= 4 | ||
|
||
install: | ||
poetry install -E parse -E alembic | ||
|
||
build: | ||
poetry build | ||
uv sync --all-extras | ||
|
||
test: | ||
SQLALCHEMY_WARN_20=1 \ | ||
COVERAGE_PROCESS_START="$(PWD)/pyproject.toml" \ | ||
uv run \ | ||
coverage run -m pytest -n $(WORKER_COUNT) -vv src tests | ||
coverage combine | ||
coverage report -i | ||
coverage xml | ||
uv run coverage combine | ||
uv run coverage report -i | ||
uv run coverage xml | ||
|
||
lint: | ||
ruff check --fix src tests || exit 1 | ||
ruff format -q src tests || exit 1 | ||
mypy src tests || exit 1 | ||
ruff format --check src tests | ||
uv run ruff check --fix src tests || exit 1 | ||
uv run ruff format -q src tests || exit 1 | ||
uv run mypy src tests || exit 1 | ||
uv run ruff format --check src tests | ||
|
||
format: | ||
ruff check src tests --fix | ||
ruff format src tests | ||
uv run ruff check src tests --fix | ||
uv run ruff format src tests |
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.