Skip to content

Unpin uv #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
path: ~/.cache/uv
key: publish-${{ hashFiles('pyproject.toml') }}
- uses: extractions/setup-just@v2
- run: curl -LsSf https://astral.sh/uv/0.2.11/install.sh | sh
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- run: just publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
path: ~/.cache/uv
key: check-types-${{ hashFiles('pyproject.toml') }}
- run: curl -LsSf https://astral.sh/uv/0.2.11/install.sh | sh
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- uses: extractions/setup-just@v2
- run: just install check-types

Expand All @@ -41,7 +41,7 @@ jobs:
with:
path: ~/.cache/uv
key: lint-${{ hashFiles('pyproject.toml') }}
- run: curl -LsSf https://astral.sh/uv/0.2.11/install.sh | sh
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- uses: extractions/setup-just@v2
- run: just install lint

Expand All @@ -61,6 +61,6 @@ jobs:
with:
path: ~/.cache/uv
key: ${{ github.job }}-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
- run: curl -LsSf https://astral.sh/uv/0.2.11/install.sh | sh
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- uses: extractions/setup-just@v2
- run: just install test
9 changes: 4 additions & 5 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ install:
uv sync

test *args:
@uv run -q pytest -- {{ args }}
@uv run -q pytest {{ args }}

lint:
uv -q run ruff check .
Expand All @@ -16,10 +16,9 @@ check-types:

publish:
rm -rf dist/*
uv tool run --from build python -- -m build --installer uv
# https://github.com/pypa/twine/issues/977
uv tool run --with=importlib-metadata==7.* twine check dist/*
uv tool run --with=importlib-metadata==7.* twine upload dist/* --username __token__ --password $PYPI_TOKEN
uv tool run --from build python -m build --installer uv
uv tool run twine check dist/*
uv tool run twine upload dist/* --username __token__ --password $PYPI_TOKEN

run *args:
@.venv/bin/auto-typing-final {{ args }}