Skip to content

Commit 4a20b6e

Browse files
chore(deps-dev): bump ruff from 0.11.9 to 0.12.2 (#53)
* chore(deps-dev): bump ruff from 0.11.9 to 0.12.2 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.11.9 to 0.12.2. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.11.9...0.12.2) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.12.2 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps-dev): fix ruff and mypy errors * chore(deps-dev): bump ruff from 0.12.2 to 0.12.8 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Joe Polny <joepolny@gmail.com>
1 parent ad18c11 commit 4a20b6e

File tree

6 files changed

+28
-37
lines changed

6 files changed

+28
-37
lines changed

docs/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# ruff: noqa: ANN001
21
# Configuration file for the Sphinx documentation builder.
32
#
43
# For the full list of built-in configuration values, see the documentation:

poetry.lock

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ py-algorand-sdk = "^2.9.1"
1313
algokit-utils = "^4.1.0"
1414
python-semantic-release = "^10.2.0"
1515
mypy = "^1.17.1"
16-
ruff = "^0.11.9"
16+
ruff = "^0.12.8"
1717
pytest = "^8.4.1"
1818
pre-commit = "^4.2.0"
1919
black = "^25.1.0"
@@ -113,7 +113,7 @@ suppress-none-returning = true
113113
[tool.mypy]
114114
files = ["src", "examples"]
115115
exclude = ["dist", "tests"]
116-
python_version = "3.10"
116+
python_version = "3.12"
117117
warn_unused_ignores = true
118118
warn_redundant_casts = true
119119
warn_unused_configs = true

src/algokit_subscriber/indexer_lookup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def lookup_account_by_address(
3838
def lookup_account_created_application_by_address(
3939
indexer: IndexerClient,
4040
address: str,
41-
get_all: bool | None = None,
41+
get_all: bool | None = None, # noqa: FBT001
4242
pagination_limit: int | None = None,
4343
) -> list[ApplicationResult]:
4444
"""

src/algokit_subscriber/utils.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import logging
22
from collections.abc import Callable
3-
from typing import TypeVar
43

54
from algosdk.encoding import encode_address as sdk_encode_address
65

@@ -12,14 +11,11 @@ def range_inclusive(start: int, end: int) -> list[int]:
1211
return list(range(start, end + 1))
1312

1413

15-
T = TypeVar("T")
16-
17-
18-
def chunk_array(arr: list[T], size: int) -> list[list[T]]:
14+
def chunk_array[T](arr: list[T], size: int) -> list[list[T]]:
1915
return [arr[i : i + size] for i in range(0, len(arr), size)]
2016

2117

22-
def reduce(array: list[T], callback: Callable[[T, T], T]) -> T:
18+
def reduce[T](array: list[T], callback: Callable[[T, T], T]) -> T:
2319
iterator = iter(array)
2420
accumulator: T = next(iterator)
2521

tests/contracts/testing_app_client.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -320,22 +320,18 @@
320320
}
321321
}"""
322322
APP_SPEC = algokit_utils.ApplicationSpecification.from_json(_APP_SPEC_JSON)
323-
_TReturn = typing.TypeVar("_TReturn")
324323

325324

326-
class _ArgsBase(ABC, typing.Generic[_TReturn]):
325+
class _ArgsBase[TReturn](ABC):
327326
@staticmethod
328327
@abstractmethod
329328
def method() -> str:
330329
...
331330

332331

333-
_TArgs = typing.TypeVar("_TArgs", bound=_ArgsBase[typing.Any])
334-
335-
336332
@dataclasses.dataclass(kw_only=True)
337-
class _TArgsHolder(typing.Generic[_TArgs]):
338-
args: _TArgs
333+
class _TArgsHolder[TArgs]:
334+
args: TArgs
339335

340336

341337
def _filter_none(value: dict | typing.Any) -> dict | typing.Any:

0 commit comments

Comments
 (0)