Skip to content

Commit

Permalink
Merge pull request #1614 from henryiii/henryiii/chore/minor
Browse files Browse the repository at this point in the history
chore: minor additions
  • Loading branch information
joerick committed Sep 18, 2023
2 parents adc991c + db6d309 commit 825d898
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
* text=auto

*.py diff=python
*.md diff=markdown

*.svg -diff
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 825d898

Please sign in to comment.