Skip to content

Commit

Permalink
Update uv
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Sep 27, 2024
1 parent c79eafc commit 36ce54d
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 170 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/publish_on_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,8 @@ jobs:
git push
- name: Publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
uvx --from build pyproject-build --installer uv
uvx twine upload --non-interactive dist/*
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: uv publish
- name: Report status
uses: actions/github-script@v7
with:
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ repos:
name: lint
language: system
pass_filenames: false
entry: uv run ruff check --fix
entry: uvx ruff check --fix
- id: format
name: format
language: system
pass_filenames: false
entry: uv run ruff format
entry: uvx ruff format
- id: pyright
name: pyright
language: system
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ classifiers = [
config-settings = { editable-mode = "strict" }
dev-dependencies = [
"setuptools",
"pre-commit",
"awscrt",
"s3transfer",
"botocore",
"mypy",
"ruff",
"pyright",
"istub",
"botocore-stubs",
Expand Down
2 changes: 1 addition & 1 deletion scripts/before_commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ set -e
ROOT_PATH=$(dirname $(dirname $0))
cd $ROOT_PATH

uv run pre-commit run --all-files
uvx pre-commit run --all-files
uv run istub -u
Loading

0 comments on commit 36ce54d

Please sign in to comment.