Skip to content

Commit

Permalink
Use uv tools
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Sep 18, 2024
1 parent d18ad81 commit 456cdfa
Show file tree
Hide file tree
Showing 5 changed files with 255 additions and 293 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ jobs:
- name: Install the project
run: |
uv sync --all-extras --dev
uv pip install mypy pre-commit
- name: Run pre-commit
run: uv run pre-commit run --all-files
run: uvx pre-commit run --all-files
- name: Stubs consistency check
if: ${{ matrix.check-consistency }}
run: |
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 @@ -31,10 +31,8 @@ dependencies = ["typing-extensions>=4.1.0; python_version<'3.9'"]
config-settings = { editable-mode = "strict" }
dev-dependencies = [
"setuptools",
"pre-commit",
"aiobotocore",
"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 456cdfa

Please sign in to comment.