Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #1791

Merged
merged 2 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
- id: trailing-whitespace

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

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.9.0
hooks:
- id: mypy
name: mypy 3.8 on cibuildwheel/
Expand Down
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