Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 12, 2024
1 parent d773f3e commit 05f74a9
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 19 deletions.
6 changes: 3 additions & 3 deletions bin/generate_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ def as_object(d: dict[str, Any]) -> dict[str, Any]:
if args.schemastore:
schema["$id"] = "https://json.schemastore.org/partial-cibuildwheel.json"
schema["$schema"] = "http://json-schema.org/draft-07/schema#"
schema[
"description"
] = "cibuildwheel's toml file, generated with ./bin/generate_schema.py --schemastore from cibuildwheel."
schema["description"] = (
"cibuildwheel's toml file, generated with ./bin/generate_schema.py --schemastore from cibuildwheel."
)

print(json.dumps(schema, indent=2))
1 change: 0 additions & 1 deletion bin/inspect_all_known_projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
the results without the `--online` setting.
"""


from __future__ import annotations

import ast
Expand Down
6 changes: 3 additions & 3 deletions bin/update_virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
RESOURCES_DIR: Final[Path] = DIR / "cibuildwheel/resources"

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


@dataclass(frozen=True, order=True)
Expand Down
6 changes: 2 additions & 4 deletions cibuildwheel/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,9 @@ class PlatformModule(Protocol):
# is applied to a module
def get_python_configurations(
self, build_selector: BuildSelector, architectures: Set[Architecture]
) -> Sequence[GenericPythonConfiguration]:
...
) -> Sequence[GenericPythonConfiguration]: ...

def build(self, options: Options, tmp_path: Path) -> None:
...
def build(self, options: Options, tmp_path: Path) -> None: ...


# pylint: disable-next=inconsistent-return-statements
Expand Down
3 changes: 1 addition & 2 deletions cibuildwheel/extra.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@


class Printable(Protocol):
def __str__(self) -> str:
...
def __str__(self) -> str: ...


def dump_python_configurations(
Expand Down
3 changes: 1 addition & 2 deletions cibuildwheel/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@

class GenericPythonConfiguration(Protocol):
@property
def identifier(self) -> str:
...
def identifier(self) -> str: ...
6 changes: 2 additions & 4 deletions cibuildwheel/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ def call(
env: Mapping[str, str] | None = None,
cwd: PathOrStr | None = None,
capture_stdout: Literal[False] = ...,
) -> None:
...
) -> None: ...


@typing.overload
Expand All @@ -101,8 +100,7 @@ def call(
env: Mapping[str, str] | None = None,
cwd: PathOrStr | None = None,
capture_stdout: Literal[True],
) -> str:
...
) -> str: ...


def call(
Expand Down

0 comments on commit 05f74a9

Please sign in to comment.