From fd6a7da88fa044709be69a4c733d879eb7175b54 Mon Sep 17 00:00:00 2001 From: PietroPasotti Date: Wed, 29 May 2024 11:55:04 +0200 Subject: [PATCH] removed deprecated tracing lib call (#333) * removed deprecated tracing lib call * codespell ignore * codespell ignores in pyproject.toml --- pyproject.toml | 4 ++++ src/charm.py | 2 +- tox.ini | 3 +-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index fdc86e77..2d0c03ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,3 +34,7 @@ pythonPlatform = "All" [tool.pytest.ini_options] asyncio_mode = "auto" + +[tool.codespell] +skip = ".git,.tox,build,venv*" +ignore-words-list = "assertIn" \ No newline at end of file diff --git a/src/charm.py b/src/charm.py index 99d12a7e..b80f799d 100755 --- a/src/charm.py +++ b/src/charm.py @@ -778,7 +778,7 @@ def _generate_tracing_config(self) -> str: tracing = self.tracing if not tracing.is_ready(): return "" - endpoint = tracing.otlp_grpc_endpoint() + endpoint = tracing.get_endpoint("otlp_grpc") if endpoint is None: return "" diff --git a/tox.ini b/tox.ini index 1c3739f0..c5ce7ceb 100644 --- a/tox.ini +++ b/tox.ini @@ -43,8 +43,7 @@ deps = ruff codespell commands = - codespell {[vars]lib_path} - codespell . --skip .git --skip .tox --skip build --skip lib --skip venv --skip .mypy_cache + codespell . ruff {[vars]all_path} black --check --diff {[vars]all_path}