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 4d3fdd7 commit 86dc2a0
Show file tree
Hide file tree
Showing 5 changed files with 316 additions and 393 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Install the project
run: uv sync --all-extras --dev
- 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
10 changes: 2 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,14 @@ classifiers = [
"Typing :: Stubs Only",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"typing-extensions>=4.1.0; python_version<'3.9'",
]
dependencies = ["typing-extensions>=4.1.0; python_version<'3.9'"]

[tool.uv]
config-settings = { editable-mode = "strict" }
dev-dependencies = [
"setuptools",
"pre-commit",
"aioboto3",
"mypy",
"ruff",
"pyright",
"istub",
"chalice",
Expand All @@ -58,9 +54,7 @@ requires = ['setuptools']
build-backend = 'setuptools.build_meta'

[tool.setuptools]
packages = [
"aioboto3-stubs",
]
packages = ["aioboto3-stubs"]

[tool.pyright]
include = ["aioboto3-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 86dc2a0

Please sign in to comment.