Skip to content

Commit

Permalink
Chore: minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ods committed Jan 29, 2024
1 parent 82695b0 commit 53b6806
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ Running tests with coverage::

make cov

To run tests with a specific version of Kafka (default one is 1.0.2) use KAFKA_VERSION variable::
To run tests with a specific version of Kafka (default one is 2.8.1) use KAFKA_VERSION variable::

make cov KAFKA_VERSION=0.10.2.1
make cov SCALA_VERSION=2.11 KAFKA_VERSION=0.10.2.1

Test running cheatsheat:

Expand Down
4 changes: 2 additions & 2 deletions aiokafka/protocol/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class RequestHeader(Struct):
("client_id", String("utf-8")),
)

def __init__(self, request, correlation_id=0, client_id="kafka-python"):
def __init__(self, request, correlation_id=0, client_id="aiokafka"):
super(RequestHeader, self).__init__(
request.API_KEY, request.API_VERSION, correlation_id, client_id
)
Expand All @@ -28,7 +28,7 @@ class RequestHeaderV2(Struct):
("tags", TaggedFields),
)

def __init__(self, request, correlation_id=0, client_id="kafka-python", tags=None):
def __init__(self, request, correlation_id=0, client_id="aiokafka", tags=None):
super(RequestHeaderV2, self).__init__(
request.API_KEY, request.API_VERSION, correlation_id, client_id, tags or {}
)
Expand Down
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,7 @@ skip_empty = true


[tool.ruff]
target-version = "py38"
line-length = 88

# For the reference, check https://beta.ruff.rs/docs/rules/
# For the reference, check https://docs.astral.sh/ruff/rules/
select = [
"F", # pyflakes
"E", "W", # pycodestyle
Expand Down

0 comments on commit 53b6806

Please sign in to comment.