diff --git a/CHANGELOG.md b/CHANGELOG.md index 28f32f3a96..5e1fef240b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Enabled the flake8-tidy-import plugins rules for the ruff linter. These rules throw warnings for relative imports in the modules. +([#4395](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/4395)) - `opentelemetry-instrumentation-asgi`: Respect `suppress_http_instrumentation` context in ASGI middleware to skip server span creation when HTTP instrumentation is suppressed ([#4375](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/4375)) - `opentelemetry-instrumentation-confluent-kafka`: Loosen confluent-kafka upper bound to <3.0.0 diff --git a/pyproject.toml b/pyproject.toml index 92cfe8b5d2..17fb43b107 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -171,6 +171,7 @@ select = [ "PLE", # pylint error "Q", # flake8-quotes "A", # flake8-builtins + "TID", # flake8-tidy-imports ] ignore = [ "E501", # line-too-long @@ -178,6 +179,7 @@ ignore = [ [tool.ruff.lint.per-file-ignores] "docs/**/*.*" = ["A001"] +"instrumentation-genai/opentelemetry-instrumentation-google-genai/tests/*" = ["TID252"] [tool.ruff.lint.isort] detect-same-package = false # to not consider instrumentation packages as first-party