Skip to content

Commit ceb0852

Browse files
JayeshHireemdnetoMikeGoldsmith
authored
Enabled flake8-tidy-imports for ruff linter (open-telemetry#4395)
* Enabled flake8-tidy-imports for ruff linter * Changes added to the CHANGELOG.md file * Update CHANGELOG.md * fixed unnecessary change * fixed unnecessary change * fixed unnecessary change --------- Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com> Co-authored-by: Mike Goldsmith <goldsmith.mike@gmail.com>
1 parent a158d63 commit ceb0852

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4444

4545
### Added
4646

47+
- Enabled the flake8-tidy-import plugins rules for the ruff linter. These rules throw warnings for relative imports in the modules.
48+
([#4395](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/4395))
4749
- `opentelemetry-instrumentation-asgi`: Respect `suppress_http_instrumentation` context in ASGI middleware to skip server span creation when HTTP instrumentation is suppressed
4850
([#4375](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/4375))
4951
- `opentelemetry-instrumentation-confluent-kafka`: Loosen confluent-kafka upper bound to <3.0.0

‎pyproject.toml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,15 @@ select = [
171171
"PLE", # pylint error
172172
"Q", # flake8-quotes
173173
"A", # flake8-builtins
174+
"TID", # flake8-tidy-imports
174175
]
175176
ignore = [
176177
"E501", # line-too-long
177178
]
178179

179180
[tool.ruff.lint.per-file-ignores]
180181
"docs/**/*.*" = ["A001"]
182+
"instrumentation-genai/opentelemetry-instrumentation-google-genai/tests/*" = ["TID252"]
181183

182184
[tool.ruff.lint.isort]
183185
detect-same-package = false # to not consider instrumentation packages as first-party

0 commit comments

Comments
 (0)