-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(tool): switch from poetry to uv (#320)
* chore(tool): switch from poetry to uv * fix(ci): codecov upload token --------- Co-authored-by: Matthew Anderson <matt@mandersience.com>
- Loading branch information
Showing
14 changed files
with
1,363 additions
and
69 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 |
---|---|---|
@@ -1,39 +1,41 @@ | ||
PHONY=fmt-docs | ||
fmt-docs: | ||
find . -path './.venv' -prune -type f -o -name '*.md' -exec poetry run blacken-docs {} + | ||
find . -path './.venv' -prune -type f -o -name '*.md' -exec uvx --from git+https://github.com/maxb2/blacken-docs@e82e9e9 blacken-docs {} + | ||
|
||
PHONY=fmt | ||
fmt: | ||
poetry run isort --ca --profile=black . | ||
poetry run black . | ||
uvx isort --ca --profile=black . | ||
uvx black . | ||
|
||
PHONY=check-types | ||
check-types: | ||
poetry run mypy typer_config | ||
uv run mypy src/typer_config | ||
|
||
PHONY=ruff | ||
ruff: | ||
poetry run ruff check . | ||
uvx ruff check . | ||
|
||
PHONY=check | ||
check: ruff check-types | ||
|
||
PHONY=test | ||
test: | ||
poetry run pytest --cov=typer_config --cov-report=xml | ||
uv run --all-extras pytest --cov=typer_config --cov-report=xml | ||
|
||
PHONY=changelog | ||
changelog: | ||
poetry run git-cliff --output CHANGELOG.md | ||
uvx git-cliff --output CHANGELOG.md | ||
|
||
PHONY=release | ||
release: changelog | ||
NEXT_VERSION=$(shell poetry run git-cliff --bumped-version) && \ | ||
poetry version $$NEXT_VERSION && \ | ||
NEXT_VERSION=$(shell uvx git-cliff --bumped-version) && \ | ||
uvx --from=toml-cli toml set --toml-path=pyproject.toml project.version $$NEXT_VERSION && \ | ||
git add pyproject.toml CHANGELOG.md && \ | ||
git commit -m "chore: Prepare release $$NEXT_VERSION" && \ | ||
poetry publish --build && \ | ||
mike deploy --push --update-aliases $$NEXT_VERSION latest && \ | ||
rm -rf ./dist && \ | ||
uv build && \ | ||
uv publish && \ | ||
uv run mike deploy --push --update-aliases $$NEXT_VERSION latest && \ | ||
git tag $$NEXT_VERSION && \ | ||
git push && \ | ||
git push --tags; |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.