Skip to content

Commit

Permalink
chore: Ruff ignore for _compat
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Sep 13, 2023
1 parent e5d0cc0 commit f6a95d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cibuildwheel/_compat/tomllib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",)
2 changes: 1 addition & 1 deletion cibuildwheel/_compat/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,4 @@ flake8-unused-arguments.ignore-variadic-names = true

[tool.ruff.per-file-ignores]
"unit_test/*" = ["PLC1901"]
"cibuildwheel/_compat/**.py" = ["TID251"]

0 comments on commit f6a95d3

Please sign in to comment.