Skip to content

Commit ad4935a

Browse files
authored
upgrade ruff (#1712)
this required a few other little tweaks
1 parent 4b608c8 commit ad4935a

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99

1010
- repo: https://github.com/astral-sh/ruff-pre-commit
1111
# Ruff version.
12-
rev: v0.11.12
12+
rev: v0.12.5
1313
hooks:
1414
- id: ruff
1515
args: [ --fix ]

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ ignore = [
118118
"N815", # Variable in class scope should not be mixedCase
119119
"N816", # Variable in global scope should not be mixedCase
120120
"PIE796", # Enum contains duplicate value: `str`
121+
"PLC0415", # Imports outside top-level
121122
"PLR0911", # Too many return statements
122123
"PLR0912", # Too many branches
123124
"PLR0913", # Too many arguments in function definition

src/ims/ext/attr.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,17 @@
44
"""
55

66
from collections.abc import Iterable
7-
from typing import TypeVar
87

98

109
__all__ = ("sorted_tuple",)
1110

1211

13-
T = TypeVar("T")
14-
15-
1612
##
1713
# Converters
1814
##
1915

2016

21-
def sorted_tuple(iterable: Iterable[T]) -> tuple[T, ...]:
17+
def sorted_tuple[T](iterable: Iterable[T]) -> tuple[T, ...]:
2218
"""
2319
Sort and convert an iterable into a tuple.
2420
"""

0 commit comments

Comments
 (0)