Skip to content

Commit 5103828

Browse files
[pre-commit.ci] pre-commit autoupdate (#1791)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.3.2](astral-sh/ruff-pre-commit@v0.2.2...v0.3.2) - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](pre-commit/mirrors-mypy@v1.8.0...v1.9.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent b3c4d37 commit 5103828

File tree

8 files changed

+14
-21
lines changed

8 files changed

+14
-21
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
- id: trailing-whitespace
1515

1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: v0.2.2
17+
rev: v0.3.2
1818
hooks:
1919
- id: ruff
2020
args: ["--fix", "--show-fixes"]
@@ -27,7 +27,7 @@ repos:
2727
args: [--include-version-classifiers, --min-py-version=3.8, --max-py-version=3.12]
2828

2929
- repo: https://github.com/pre-commit/mirrors-mypy
30-
rev: v1.8.0
30+
rev: v1.9.0
3131
hooks:
3232
- id: mypy
3333
name: mypy 3.8 on cibuildwheel/

bin/generate_schema.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ def as_object(d: dict[str, Any]) -> dict[str, Any]:
290290
if args.schemastore:
291291
schema["$id"] = "https://json.schemastore.org/partial-cibuildwheel.json"
292292
schema["$schema"] = "http://json-schema.org/draft-07/schema#"
293-
schema[
294-
"description"
295-
] = "cibuildwheel's toml file, generated with ./bin/generate_schema.py --schemastore from cibuildwheel."
293+
schema["description"] = (
294+
"cibuildwheel's toml file, generated with ./bin/generate_schema.py --schemastore from cibuildwheel."
295+
)
296296

297297
print(json.dumps(schema, indent=2))

bin/inspect_all_known_projects.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
the results without the `--online` setting.
1212
"""
1313

14-
1514
from __future__ import annotations
1615

1716
import ast

bin/update_virtualenv.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
RESOURCES_DIR: Final[Path] = DIR / "cibuildwheel/resources"
2626

2727
GET_VIRTUALENV_GITHUB: Final[str] = "https://github.com/pypa/get-virtualenv"
28-
GET_VIRTUALENV_URL_TEMPLATE: Final[
29-
str
30-
] = f"{GET_VIRTUALENV_GITHUB}/blob/{{version}}/public/virtualenv.pyz?raw=true"
28+
GET_VIRTUALENV_URL_TEMPLATE: Final[str] = (
29+
f"{GET_VIRTUALENV_GITHUB}/blob/{{version}}/public/virtualenv.pyz?raw=true"
30+
)
3131

3232

3333
@dataclass(frozen=True, order=True)

cibuildwheel/__main__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,9 @@ class PlatformModule(Protocol):
233233
# is applied to a module
234234
def get_python_configurations(
235235
self, build_selector: BuildSelector, architectures: Set[Architecture]
236-
) -> Sequence[GenericPythonConfiguration]:
237-
...
236+
) -> Sequence[GenericPythonConfiguration]: ...
238237

239-
def build(self, options: Options, tmp_path: Path) -> None:
240-
...
238+
def build(self, options: Options, tmp_path: Path) -> None: ...
241239

242240

243241
# pylint: disable-next=inconsistent-return-statements

cibuildwheel/extra.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212

1313

1414
class Printable(Protocol):
15-
def __str__(self) -> str:
16-
...
15+
def __str__(self) -> str: ...
1716

1817

1918
def dump_python_configurations(

cibuildwheel/typing.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,4 @@
2828

2929
class GenericPythonConfiguration(Protocol):
3030
@property
31-
def identifier(self) -> str:
32-
...
31+
def identifier(self) -> str: ...

cibuildwheel/util.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ def call(
9191
env: Mapping[str, str] | None = None,
9292
cwd: PathOrStr | None = None,
9393
capture_stdout: Literal[False] = ...,
94-
) -> None:
95-
...
94+
) -> None: ...
9695

9796

9897
@typing.overload
@@ -101,8 +100,7 @@ def call(
101100
env: Mapping[str, str] | None = None,
102101
cwd: PathOrStr | None = None,
103102
capture_stdout: Literal[True],
104-
) -> str:
105-
...
103+
) -> str: ...
106104

107105

108106
def call(

0 commit comments

Comments
 (0)