Skip to content

Commit

Permalink
Replaced black with ruff-format
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Oct 30, 2023
1 parent 3f829cc commit 83b77e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
8 changes: 2 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,11 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.1
rev: v0.1.3
hooks:
- id: ruff
args: [--fix, --show-fixes]

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.10.0
hooks:
- id: black
- id: ruff-format

- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
Expand Down
5 changes: 3 additions & 2 deletions src/wheel/bdist_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,9 @@ class bdist_wheel(Command):
(
"compression=",
None,
"zipfile compression (one of: {})"
" (default: 'deflated')".format(", ".join(supported_compressions)),
"zipfile compression (one of: {})" " (default: 'deflated')".format(
", ".join(supported_compressions)
),
),
(
"python-tag=",
Expand Down
4 changes: 1 addition & 3 deletions tests/cli/test_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ def test_pack(tmp_path_factory, tmp_path, build_tag_arg, existing_build_tag, fil
Root-Is-Purelib: false
Tag: py2-none-any
Tag: py3-none-any
""".replace(
"\n", "\r\n"
)
""".replace("\n", "\r\n")
)
if expected_build_num:
expected_wheel_content += "Build: %s\r\n" % expected_build_num
Expand Down

0 comments on commit 83b77e5

Please sign in to comment.