Skip to content

Commit 001977e

Browse files
committed
Switched from black to ruff-format
1 parent 241d120 commit 001977e

4 files changed

Lines changed: 5 additions & 9 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,7 @@ repos:
1818
hooks:
1919
- id: ruff
2020
args: [--fix, --show-fixes]
21-
22-
- repo: https://github.com/psf/black
23-
rev: 24.3.0
24-
hooks:
25-
- id: black
26-
exclude: "^tests/mypy/negative.py"
21+
- id: ruff-format
2722

2823
- repo: https://github.com/pre-commit/mirrors-mypy
2924
rev: v1.9.0

src/typeguard/_checkers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,8 @@ def builtin_checker_lookup(
934934
elif is_typeddict(origin_type):
935935
return check_typed_dict
936936
elif isclass(origin_type) and issubclass(
937-
origin_type, Tuple # type: ignore[arg-type]
937+
origin_type,
938+
Tuple, # type: ignore[arg-type]
938939
):
939940
# NamedTuple
940941
return check_tuple

src/typeguard/_pytest_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def pytest_addoption(parser: Parser) -> None:
1616
def add_ini_option(
1717
opt_type: (
1818
Literal["string", "paths", "pathlist", "args", "linelist", "bool"] | None
19-
)
19+
),
2020
) -> None:
2121
parser.addini(
2222
group.options[-1].names()[0][2:],

src/typeguard/_suppression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def suppress_type_checks() -> ContextManager[None]: ...
2828

2929

3030
def suppress_type_checks(
31-
func: Callable[P, T] | None = None
31+
func: Callable[P, T] | None = None,
3232
) -> Callable[P, T] | ContextManager[None]:
3333
"""
3434
Temporarily suppress all type checking.

0 commit comments

Comments
 (0)