Skip to content

Commit 8104ce1

Browse files
[pre-commit.ci] pre-commit autoupdate (cloudevents#205)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pycqa/isort: 5.11.4 → 5.12.0](PyCQA/isort@5.11.4...5.12.0) - [github.com/psf/black: 22.12.0 → 23.3.0](psf/black@22.12.0...23.3.0) - [github.com/pre-commit/mirrors-mypy: v0.991 → v1.2.0](pre-commit/mirrors-mypy@v0.991...v1.2.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent ef98274 commit 8104ce1

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ repos:
66
- id: end-of-file-fixer
77
- id: check-toml
88
- repo: https://github.com/pycqa/isort
9-
rev: 5.11.4
9+
rev: 5.12.0
1010
hooks:
1111
- id: isort
1212
args: [ "--profile", "black", "--filter-files" ]
1313
- repo: https://github.com/psf/black
14-
rev: 22.12.0
14+
rev: 23.3.0
1515
hooks:
1616
- id: black
1717
language_version: python3.10
1818
- repo: https://github.com/pre-commit/mirrors-mypy
19-
rev: "v0.991"
19+
rev: "v1.2.0"
2020
hooks:
2121
- id: mypy
2222
files: ^(cloudevents/)

cloudevents/sdk/converters/binary.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def can_read(
3030
content_type: typing.Optional[str] = None,
3131
headers: typing.Optional[typing.Mapping[str, str]] = None,
3232
) -> bool:
33-
3433
if headers is None:
3534
headers = {"ce-specversion": ""}
3635
return has_binary_headers(headers)

cloudevents/sdk/event/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525

2626
class EventGetterSetter(object): # pragma: no cover
27-
2827
# ce-specversion
2928
def CloudEventVersion(self) -> str:
3029
raise Exception("not implemented")

cloudevents/tests/test_kafka_conversions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ def failing_func(*args):
4444

4545

4646
class KafkaConversionTestBase:
47-
4847
expected_data = {"name": "test", "amount": 1}
4948
expected_custom_mapped_key = "custom-key"
5049

cloudevents/tests/test_pydantic_cloudevent.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,12 @@ def test_json_data_serialization_with_explicit_json_content_type(
239239
dummy_attributes, json_content_type
240240
):
241241
dummy_attributes["datacontenttype"] = json_content_type
242-
assert loads(CloudEvent(dummy_attributes, data='{"hello": "world"}',).json())[
242+
assert loads(
243+
CloudEvent(
244+
dummy_attributes,
245+
data='{"hello": "world"}',
246+
).json()
247+
)[
243248
"data"
244249
] == {"hello": "world"}
245250

0 commit comments

Comments
 (0)