Skip to content

Commit

Permalink
Switch from black to ruff format.
Browse files Browse the repository at this point in the history
  • Loading branch information
jab committed Jan 26, 2024
1 parent 1add19e commit 87323f3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 20 deletions.
11 changes: 2 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,11 @@ repos:
- pytest

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.13
rev: v0.1.14
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
# TODO: Switch from black (below) to ruff format once we can pick up the fix for
# https://github.com/astral-sh/ruff/issues/8357
# - id: ruff-format

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

- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.6
Expand Down
1 change: 0 additions & 1 deletion bidict/_dup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

"""Provide :class:`OnDup` and related functionality."""


from __future__ import annotations

import typing as t
Expand Down
1 change: 0 additions & 1 deletion bidict/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

"""Define bidict package metadata."""


__version__ = '0.23.0.dev0'
__author__ = {'name': 'Joshua Bronson', 'email': 'jabronson@gmail.com'}
__copyright__ = '© 2009-2024 Joshua Bronson'
Expand Down
13 changes: 4 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ extend-select = [
"ARG",
"B",
"BLE",
"COM",
"E",
"F",
"FA",
Expand All @@ -69,7 +68,6 @@ extend-select = [
"G",
"I",
"ICN",
"ISC",
"PERF",
"PGH",
"PIE",
Expand All @@ -87,16 +85,13 @@ extend-select = [
]

line-length = 121
# TODO: Replace black config below with the following once we can pick up the fix for
# https://github.com/astral-sh/ruff/issues/8357 and switch from black to ruff:
# [tool.ruff.format]
# quote-style = "single"

[tool.ruff.isort]
force-single-line = true
lines-after-imports = 2

[tool.black]
line-length = 121
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = "dynamic"
preview = true
skip-string-normalization = true
quote-style = "single"

0 comments on commit 87323f3

Please sign in to comment.