Skip to content

Commit

Permalink
Apply ruff format to all code
Browse files Browse the repository at this point in the history
  • Loading branch information
ods committed Jan 21, 2024
1 parent db37982 commit 04aa839
Show file tree
Hide file tree
Showing 59 changed files with 4,014 additions and 3,329 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ setup:

.PHONY: format
format:
ruff format $(FORMATTED_AREAS) setup.py
ruff format aiokafka tests setup.py
ruff check --fix aiokafka tests setup.py

.PHONY: lint
lint:
ruff format --check $(FORMATTED_AREAS) setup.py
ruff format --check aiokafka tests setup.py
ruff check aiokafka tests setup.py
mypy --install-types --non-interactive $(FORMATTED_AREAS)

Expand Down
11 changes: 7 additions & 4 deletions aiokafka/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.10.0' # noqa
__version__ = "0.10.0" # noqa

from .abc import ConsumerRebalanceListener
from .client import AIOKafkaClient
Expand All @@ -19,10 +19,13 @@
# ABC's
"ConsumerRebalanceListener",
# Errors
"ConsumerStoppedError", "IllegalOperation",
"ConsumerStoppedError",
"IllegalOperation",
# Structs
"ConsumerRecord", "TopicPartition", "OffsetAndTimestamp",
"OffsetAndMetadata"
"ConsumerRecord",
"TopicPartition",
"OffsetAndTimestamp",
"OffsetAndMetadata",
]

AIOKafkaClient
2 changes: 1 addition & 1 deletion aiokafka/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,5 @@ def extensions(self):

__all__ = [
"ConsumerRebalanceListener",
"AbstractTokenProvider"
"AbstractTokenProvider",
]
Loading

0 comments on commit 04aa839

Please sign in to comment.