diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3bb868491..6106d7668 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,17 +14,17 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "0.12.1" + rev: "0.13.0" hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.6"] - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.0.0-alpha.9-for-vscode" + rev: "v3.0.0" hooks: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.276" + rev: "v0.0.277" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/tasks/upgrade_wheels.py b/tasks/upgrade_wheels.py index 126c35614..daa289424 100644 --- a/tasks/upgrade_wheels.py +++ b/tasks/upgrade_wheels.py @@ -77,7 +77,7 @@ def run(): # noqa: C901 del removed[key] lines.append(text) for key, versions in removed.items(): - lines.append(f"Removed {key} of {fmt_version(versions)}") # noqa: PERF401 + lines.append(f"Removed {key} of {fmt_version(versions)}") lines.append("") changelog = "\n".join(lines) print(changelog) # noqa: T201 @@ -87,7 +87,7 @@ def run(): # noqa: C901 for package in sorted(new_batch.keys()): for folder, version in sorted(folders.items()): if (folder / package).exists(): - support_table[version].append(package) # noqa: PERF401 + support_table[version].append(package) support_table = {k: OrderedDict((i.split("-")[0], i) for i in v) for k, v in support_table.items()} bundle = ",".join( f"{v!r}: {{ {','.join(f'{p!r}: {f!r}' for p, f in line.items())} }}" for v, line in support_table.items() diff --git a/tests/unit/seed/wheels/test_periodic_update.py b/tests/unit/seed/wheels/test_periodic_update.py index 736c70c8f..32931bfe3 100644 --- a/tests/unit/seed/wheels/test_periodic_update.py +++ b/tests/unit/seed/wheels/test_periodic_update.py @@ -71,7 +71,7 @@ def _do_update( # noqa: PLR0913 assert "\tNewVersion(" in caplog.text packages = defaultdict(list) for args in do_update_mock.call_args_list: - packages[args[1]["distribution"]].append(args[1]["for_py_version"]) # noqa: PERF401 + packages[args[1]["distribution"]].append(args[1]["for_py_version"]) packages = {key: sorted(value) for key, value in packages.items()} versions = sorted(BUNDLE_SUPPORT.keys()) expected = {"setuptools": versions, "wheel": versions, "pip": versions}