Skip to content

Commit b776e25

Browse files
authored
updates (#49)
1 parent 0277a2b commit b776e25

6 files changed

Lines changed: 186 additions & 173 deletions

File tree

.github/workflows/CI.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v6
1212
- uses: actions/setup-python@v6
1313
with:
14-
python-version: "3.13"
14+
python-version: "3.14"
1515
- name: Install Pre-Commit
1616
run: python -m pip install pre-commit && pre-commit install
1717
- name: Load cached Pre-Commit Dependencies

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
default_language_version:
2-
python: "3.13"
2+
python: "3.14"
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v5.0.0
5+
rev: v6.0.0
66
hooks:
77
- id: check-ast
88
- id: check-case-conflict
@@ -12,13 +12,13 @@ repos:
1212
- id: mixed-line-ending
1313
- id: trailing-whitespace
1414
- repo: https://github.com/astral-sh/ruff-pre-commit
15-
rev: v0.9.4
15+
rev: v0.15.18
1616
hooks:
1717
- id: ruff
1818
args: ["--fix"]
1919
- id: ruff-format
2020
- repo: https://github.com/pre-commit/mirrors-mypy
21-
rev: v1.14.1
21+
rev: v2.1.0
2222
hooks:
2323
- id: mypy
2424
exclude: test

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "unasyncd"
3-
version = "0.10.0"
3+
version = "0.10.1"
44
description = "A tool to transform asynchronous Python code to synchronous Python code."
55
authors = [{ name = "Janek Nouvertné", email = "provinzkraut@posteo.de" }, ]
66
license = "MIT"

unasyncd/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ class File(Path):
164164
contents.
165165
"""
166166

167-
def __init__(self, path: str | Path):
168-
super().__init__(path)
167+
def __init__(self, path: str | Path, *args: Any, **kwargs: Any):
168+
super().__init__(path, *args, **kwargs)
169169
self._content: str | None = None
170170
self._signature: str | None = None
171171
self._content_hash: str | None = None

unasyncd/transformers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ def leave_ImportFrom(
11451145
current_names = (
11461146
updated_node.names
11471147
if not isinstance(updated_node.names, cst.ImportStar)
1148-
else [updated_node.names] # type: ignore[list-item]
1148+
else [updated_node.names]
11491149
)
11501150

11511151
updated_node = updated_node.with_changes(

0 commit comments

Comments
 (0)