diff --git a/cibuildwheel/_compat/tomllib.py b/cibuildwheel/_compat/tomllib.py index f3b30fe65..62d601c65 100644 --- a/cibuildwheel/_compat/tomllib.py +++ b/cibuildwheel/_compat/tomllib.py @@ -3,8 +3,8 @@ import sys if sys.version_info >= (3, 11): - from tomllib import load # noqa: TID251 + from tomllib import load else: - from tomli import load # noqa: TID251 + from tomli import load __all__ = ("load",) diff --git a/cibuildwheel/_compat/typing.py b/cibuildwheel/_compat/typing.py index a66b1abb5..d1aa72271 100644 --- a/cibuildwheel/_compat/typing.py +++ b/cibuildwheel/_compat/typing.py @@ -5,7 +5,7 @@ if sys.version_info < (3, 11): from typing_extensions import NotRequired, assert_never else: - from typing import NotRequired, assert_never # noqa: TID251 + from typing import NotRequired, assert_never __all__ = ( "assert_never", diff --git a/pyproject.toml b/pyproject.toml index 4368cd33a..bf84836e4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -161,3 +161,4 @@ flake8-unused-arguments.ignore-variadic-names = true [tool.ruff.per-file-ignores] "unit_test/*" = ["PLC1901"] +"cibuildwheel/_compat/**.py" = ["TID251"]