[pre-commit.ci] pre-commit autoupdate (#1536)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/charliermarsh/ruff-pre-commit: v0.0.272 → v0.0.275](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.272...v0.0.275) - [github.com/pre-commit/mirrors-mypy: v1.3.0 → v1.4.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.3.0...v1.4.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * chore: update for better mypy lambdas Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> --------- Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
co-authored by
pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Henry Schreiner
parent
33f02f2e1d
commit
aeb0a3ee83
@@ -19,7 +19,7 @@ repos:
|
|||||||
- id: black
|
- id: black
|
||||||
|
|
||||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||||
rev: v0.0.272
|
rev: v0.0.275
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: ["--fix", "--show-fixes"]
|
args: ["--fix", "--show-fixes"]
|
||||||
@@ -31,7 +31,7 @@ repos:
|
|||||||
args: [--include-version-classifiers, --max-py-version=3.11]
|
args: [--include-version-classifiers, --max-py-version=3.11]
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
rev: v1.3.0
|
rev: v1.4.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
name: mypy 3.7 on cibuildwheel/
|
name: mypy 3.7 on cibuildwheel/
|
||||||
@@ -39,7 +39,7 @@ repos:
|
|||||||
args: ["--python-version=3.7"]
|
args: ["--python-version=3.7"]
|
||||||
additional_dependencies: &mypy-dependencies
|
additional_dependencies: &mypy-dependencies
|
||||||
- nox
|
- nox
|
||||||
- packaging~=21.0
|
- packaging
|
||||||
- pygithub
|
- pygithub
|
||||||
- rich
|
- rich
|
||||||
- tomli
|
- tomli
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ class PyPyVersions:
|
|||||||
|
|
||||||
def update_version_windows(self, spec: Specifier) -> ConfigWinCP:
|
def update_version_windows(self, spec: Specifier) -> ConfigWinCP:
|
||||||
releases = [r for r in self.releases if spec.contains(r["python_version"])]
|
releases = [r for r in self.releases if spec.contains(r["python_version"])]
|
||||||
releases = sorted(releases, key=lambda r: r["pypy_version"]) # type: ignore[no-any-return]
|
releases = sorted(releases, key=lambda r: r["pypy_version"])
|
||||||
releases = [r for r in releases if self.get_arch_file(r)]
|
releases = [r for r in releases if self.get_arch_file(r)]
|
||||||
|
|
||||||
if not releases:
|
if not releases:
|
||||||
@@ -156,7 +156,7 @@ class PyPyVersions:
|
|||||||
raise RuntimeError(msg)
|
raise RuntimeError(msg)
|
||||||
|
|
||||||
releases = [r for r in self.releases if spec.contains(r["python_version"])]
|
releases = [r for r in self.releases if spec.contains(r["python_version"])]
|
||||||
releases = sorted(releases, key=lambda r: r["pypy_version"]) # type: ignore[no-any-return]
|
releases = sorted(releases, key=lambda r: r["pypy_version"])
|
||||||
|
|
||||||
if not releases:
|
if not releases:
|
||||||
msg = f"PyPy macOS {self.arch} not found for {spec}!"
|
msg = f"PyPy macOS {self.arch} not found for {spec}!"
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ def _dig_first(*pairs: tuple[Mapping[str, Setting], str], ignore_empty: bool = F
|
|||||||
if key in dict_like:
|
if key in dict_like:
|
||||||
value = dict_like[key]
|
value = dict_like[key]
|
||||||
|
|
||||||
if ignore_empty and value == "": # noqa: PLC1901
|
if ignore_empty and value == "":
|
||||||
continue
|
continue
|
||||||
|
|
||||||
return value
|
return value
|
||||||
|
|||||||
Reference in New Issue
Block a user