-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate package manager to uv (fix #558)
- Loading branch information
1 parent
707c4d5
commit b457721
Showing
13 changed files
with
1,352 additions
and
7,358 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,2 @@ | ||
[tools] | ||
python = "3.12" |
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,39 +1,32 @@ | ||
.PHONY: fmt | ||
fmt: | ||
hatch run fmt | ||
# TODO: https://github.com/astral-sh/uv/issues/5903 | ||
uvx ruff check --select I --fix . | ||
uvx ruff format . | ||
|
||
.PHONY: chk | ||
chk: | ||
hatch run chk | ||
uvx ruff check . | ||
uvx ruff format --check . | ||
uv run mypy . | ||
|
||
.PHONY: test | ||
test: chk | ||
hatch run test | ||
|
||
.PHONY: test-all | ||
test-all: chk | ||
hatch -e test run test | ||
uv run pytest -n 8 --cov pyathena --cov-report html --cov-report term tests/pyathena/ | ||
|
||
.PHONY: test-sqla | ||
test-sqla: | ||
hatch run test-sqla | ||
|
||
.PHONY: test-sqla-all | ||
test-sqla-all: | ||
hatch -e test run test-sqla | ||
uv run pytest -n 8 --cov pyathena --cov-report html --cov-report term tests/sqlalchemy/ | ||
|
||
.PHONY: lock | ||
lock: | ||
rm -rf ./requirements/ | ||
hatch env run -- python --version | ||
hatch env run --env test -- python --version | ||
|
||
.PHONY: upgrade-lock | ||
upgrade-lock: | ||
rm -rf ./requirements/ | ||
PIP_COMPILE_UPGRADE=1 hatch env run -- python --version | ||
PIP_COMPILE_UPGRADE=1 hatch env run --env test -- python --version | ||
.PHONY: tox | ||
tox: | ||
uvx tox run | ||
|
||
.PHONY: docs | ||
docs: | ||
cd ./docs && $(MAKE) clean html | ||
cd ./docs && uv run $(MAKE) clean html | ||
|
||
.PHONY: tool | ||
tool: | ||
uv tool install ruff | ||
uv tool install tox --with tox-uv --with tox-gh-actions |
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.