diff --git a/CHANGELOG.md b/CHANGELOG.md index e55778dc75..8af387c337 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +- Enabled the flake8-tidy-import plugins rules for the ruff linter. These rules throw warnings for relative imports in the modules. + ([#5019](https://github.com/open-telemetry/opentelemetry-python/pull/5019)) - `opentelemetry-sdk`: Fix `AttributeError` in `ExplicitBucketHistogramAggregation` when applied to non-Histogram instruments without explicit boundaries ([#5034](https://github.com/open-telemetry/opentelemetry-python/pull/5034)) - Fix `BatchLogRecordProcessor` default `schedule_delay_millis` from 5000ms to 1000ms to comply with the OTel specification. Note: logs may be exported 5x more frequently by default (e.g. for users who don't explicitly set the `OTEL_BLRP_SCHEDULE_DELAY` env var). diff --git a/pyproject.toml b/pyproject.toml index 2478c1134d..294a7c4b09 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -85,6 +85,7 @@ select = [ "PLE", # pylint error "Q", # flake8-quotes "G", # https://docs.astral.sh/ruff/rules/#flake8-logging-format-g + "TID", # flake8-tidy-imports "UP011", # lru-cache-without-parameters "UP015", # redundant-open-modes "UP032", # f-string @@ -99,6 +100,7 @@ ignore = [ [tool.ruff.lint.per-file-ignores] "docs/**/*.*" = ["PLE"] "opentelemetry-sdk/tests/_configuration/test_models.py" = ["E402", "PLC0415"] +"shim/opentelemetry-opentracing-shim/tests/*" = ["TID252"] [tool.ruff.lint.isort] known-third-party = [