Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#2604)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jul 11, 2023
1 parent deeae9a commit 789aac7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions tasks/upgrade_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/seed/wheels/test_periodic_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 789aac7

Please sign in to comment.