From 6b3e68070d4472294f4639e910f03f1d386ef7cf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 14 Jan 2025 04:57:27 +0000 Subject: [PATCH] chore(deps): bump the pip group with 6 updates (#2036) * chore(deps): bump the pip group with 6 updates Bumps the pip group with 6 updates: | Package | From | To | | --- | --- | --- | | [ruff](https://github.com/astral-sh/ruff) | `0.8.6` | `0.9.1` | | [bandit](https://github.com/PyCQA/bandit) | `1.8.0` | `1.8.2` | | [semgrep](https://github.com/returntocorp/semgrep) | `1.101.0` | `1.102.0` | | [coverage[toml]](https://github.com/nedbat/coveragepy) | `7.6.1` | `7.6.10` | | [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) | `0.24.0` | `0.25.2` | | [dirty-equals](https://github.com/samuelcolvin/dirty-equals) | `0.8.0` | `0.9.0` | Updates `ruff` from 0.8.6 to 0.9.1 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.8.6...0.9.1) Updates `bandit` from 1.8.0 to 1.8.2 - [Release notes](https://github.com/PyCQA/bandit/releases) - [Commits](https://github.com/PyCQA/bandit/compare/1.8.0...1.8.2) Updates `semgrep` from 1.101.0 to 1.102.0 - [Release notes](https://github.com/returntocorp/semgrep/releases) - [Changelog](https://github.com/semgrep/semgrep/blob/develop/CHANGELOG.md) - [Commits](https://github.com/returntocorp/semgrep/compare/v1.101.0...v1.102.0) Updates `coverage[toml]` from 7.6.1 to 7.6.10 - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/7.6.1...7.6.10) Updates `pytest-asyncio` from 0.24.0 to 0.25.2 - [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases) - [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.24.0...v0.25.2) Updates `dirty-equals` from 0.8.0 to 0.9.0 - [Release notes](https://github.com/samuelcolvin/dirty-equals/releases) - [Commits](https://github.com/samuelcolvin/dirty-equals/compare/v0.8.0...v0.9.0) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pip - dependency-name: bandit dependency-type: direct:production update-type: version-update:semver-patch dependency-group: pip - dependency-name: semgrep dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pip - dependency-name: coverage[toml] dependency-type: direct:production update-type: version-update:semver-patch dependency-group: pip - dependency-name: pytest-asyncio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pip - dependency-name: dirty-equals dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pip ... Signed-off-by: dependabot[bot] * docs: generate API References * Update pyproject.toml --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pastukhov Nikita --- faststream/confluent/subscriber/asyncapi.py | 2 +- faststream/kafka/subscriber/asyncapi.py | 2 +- pyproject.toml | 10 +++++----- tests/opentelemetry/basic.py | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/faststream/confluent/subscriber/asyncapi.py b/faststream/confluent/subscriber/asyncapi.py index bb0d592f76..e5c1f3c623 100644 --- a/faststream/confluent/subscriber/asyncapi.py +++ b/faststream/confluent/subscriber/asyncapi.py @@ -30,7 +30,7 @@ class AsyncAPISubscriber(LogicSubscriber[MsgType]): """A class to handle logic and async API operations.""" def get_name(self) -> str: - return f'{",".join(self.topics)}:{self.call_name}' + return f"{','.join(self.topics)}:{self.call_name}" def get_schema(self) -> Dict[str, Channel]: channels = {} diff --git a/faststream/kafka/subscriber/asyncapi.py b/faststream/kafka/subscriber/asyncapi.py index c3444ec91c..4ea1e376fe 100644 --- a/faststream/kafka/subscriber/asyncapi.py +++ b/faststream/kafka/subscriber/asyncapi.py @@ -31,7 +31,7 @@ class AsyncAPISubscriber(LogicSubscriber[MsgType]): """A class to handle logic and async API operations.""" def get_name(self) -> str: - return f'{",".join(self.topics)}:{self.call_name}' + return f"{','.join(self.topics)}:{self.call_name}" def get_schema(self) -> Dict[str, Channel]: channels = {} diff --git a/pyproject.toml b/pyproject.toml index 73e0dae2a5..034637a0e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -121,9 +121,9 @@ types = [ lint = [ "faststream[types]", - "ruff==0.8.6", - "bandit==1.8.0", - "semgrep==1.101.0", + "ruff==0.9.1", + "bandit==1.8.2", + "semgrep==1.102.0", "codespell==2.3.0", ] @@ -131,9 +131,9 @@ test-core = [ "coverage[toml]==7.6.10; python_version >= '3.9'", "coverage[toml]==7.6.1; python_version == '3.8'", "pytest==8.3.4", - "pytest-asyncio==0.25.1; python_version >= '3.9'", + "pytest-asyncio==0.25.2; python_version >= '3.9'", "pytest-asyncio==0.24.0; python_version == '3.8'", - "dirty-equals==0.8.0", + "dirty-equals==0.9.0", "typing-extensions>=4.8.0,<4.12.1; python_version < '3.9'", # to fix dirty-equals ] diff --git a/tests/opentelemetry/basic.py b/tests/opentelemetry/basic.py index d3a28ab0ce..be7296d256 100644 --- a/tests/opentelemetry/basic.py +++ b/tests/opentelemetry/basic.py @@ -115,9 +115,9 @@ def assert_span( ] if action == Action.PROCESS: - assert attrs[SpanAttr.MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES] == len( - msg - ), attrs[SpanAttr.MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES] + assert attrs[SpanAttr.MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES] == len(msg), ( + attrs[SpanAttr.MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES] + ) assert attrs[SpanAttr.MESSAGING_OPERATION] == action, attrs[ SpanAttr.MESSAGING_OPERATION ]