Skip to content

Commit db37982

Browse files
committed
Replace black with ruff format
1 parent a29e1f6 commit db37982

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ setup:
1414

1515
.PHONY: format
1616
format:
17-
black $(FORMATTED_AREAS) setup.py
17+
ruff format $(FORMATTED_AREAS) setup.py
1818
ruff check --fix aiokafka tests setup.py
1919

2020
.PHONY: lint
2121
lint:
22-
black --check $(FORMATTED_AREAS) setup.py
22+
ruff format --check $(FORMATTED_AREAS) setup.py
2323
ruff check aiokafka tests setup.py
2424
mypy --install-types --non-interactive $(FORMATTED_AREAS)
2525

aiokafka/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def parse_kafka_version(api_version: str) -> Tuple[int, int, int]:
6262

6363

6464
def commit_structure_validate(
65-
offsets: Dict[TopicPartition, Union[int, Tuple[int, str], OffsetAndMetadata]]
65+
offsets: Dict[TopicPartition, Union[int, Tuple[int, str], OffsetAndMetadata]],
6666
) -> Dict[TopicPartition, OffsetAndMetadata]:
6767
# validate `offsets` structure
6868
if not offsets or not isinstance(offsets, dict):

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ select = [
9393
"I", # isort
9494
]
9595

96+
[tool.ruff.format]
97+
docstring-code-format = true
98+
9699

97100
[tool.mypy]
98101
python_version = "3.8"

requirements-ci.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
-r requirements-cython.txt
2-
ruff==0.1.13
3-
black==22.3.0
2+
ruff==0.1.14
43
mypy==1.8.0
54
pytest==7.4.3
65
pytest-cov==4.1.0

requirements-win-test.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
-r requirements-cython.txt
2-
ruff==0.1.13
3-
black==22.3.0
2+
ruff==0.1.14
43
mypy==1.8.0
54
pytest==7.4.3
65
pytest-cov==4.1.0

0 commit comments

Comments
 (0)