Skip to content

Commit

Permalink
Merge pull request #107 from jorenham/dependency-updates
Browse files Browse the repository at this point in the history
update the dev deps
  • Loading branch information
jorenham authored Nov 5, 2024
2 parents c87b2d5 + 0e08922 commit 9a63644
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 48 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
VERSION_UV: "0.4.21"

jobs:
lint:
timeout-minutes: 5
Expand All @@ -27,7 +24,6 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
version: ${{ env.VERSION_UV }}

- name: uv sync
run: uv sync --frozen
Expand Down Expand Up @@ -67,7 +63,6 @@ jobs:
- name: setup uv
uses: astral-sh/setup-uv@v3
with:
version: ${{ env.VERSION_UV }}
enable-cache: true

- name: setup python
Expand Down
1 change: 0 additions & 1 deletion .python-version

This file was deleted.

15 changes: 7 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ packages = ["unpy"]

[tool.uv]
dev-dependencies = [
"basedmypy>=2.6.0,<3",
"basedpyright>=1.18.4,<2",
"codespell>=2.3.0,<3",
"pre-commit>=4.0.1,<5",
"pytest>=8.3.3,<9",
"ruff>=0.6.9,<1",
"tox>=4.21.2,<5",
"basedmypy>=2.6.0",
"basedpyright>=1.19.1",
"codespell>=2.3.0",
"pre-commit>=4.0.1",
"pytest>=8.3.3",
"ruff>=0.7.1",
"tox>=4.23.2",
]

[tool.mypy]
Expand Down Expand Up @@ -181,7 +181,6 @@ max-statements = 100

[tool.tox]
isolated_build = true
requires = ["tox>=4.21.2"]
env_list = ["3.12", "3.13", "precommit"]

[tool.tox.env_run_base]
Expand Down
2 changes: 2 additions & 0 deletions tests/test_visitors.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ def test_import_access_package_attr_attr() -> None:

# baseclasses


def test_baseclasses_single() -> None:
visitor = _visit(
"from typing import Protocol as Interface",
Expand All @@ -328,6 +329,7 @@ def test_baseclasses_single() -> None:
# type params
# TODO


# nested ClassVar and Final
def test_nested_classvar_final() -> None:
visitor_tn = _visit(
Expand Down
2 changes: 1 addition & 1 deletion unpy/_version_iv.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def bounded_above(self, /) -> bool:

@override
def __repr__(self, /) -> str:
return f"{type(self).__name__}({self.a}, {self.stop or "..."})"
return f"{type(self).__name__}({self.a}, {self.stop or '...'})"

@override
def __str__(self, /) -> str:
Expand Down
2 changes: 1 addition & 1 deletion unpy/visitors.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def _register_import(
alias: str | None = None,
) -> str:
# this `str.removesuffix` avoids a double `.` in case of `from . import name`
fqn = f"{module.removesuffix(".")}.{name}" if module else name
fqn = f"{module.removesuffix('.')}.{name}" if module else name

if fqn.startswith("__future__"):
raise StubError("__future__ imports are useless in stubs")
Expand Down
64 changes: 32 additions & 32 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9a63644

Please sign in to comment.