diff --git a/CHANGELOG.md b/CHANGELOG.md index 614f240d4e..0af7034861 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +- Enabled the flake8-print plugin rules for ruff linter. These rules throw warnings over the use of `print` and `pprint` statements. +([5046](https://github.com/open-telemetry/opentelemetry-python/pull/5046)) +- Enabled the flake8-tidy-import plugins rules for the ruff linter. These rules throw warnings for relative imports in the modules. - `opentelemetry-sdk`: add `additional_properties` support to generated config models via custom `datamodel-codegen` template, enabling plugin/custom component names to flow through typed dataclasses ([#5131](https://github.com/open-telemetry/opentelemetry-python/pull/5131)) - Fix incorrect code example in `create_tracer()` docstring diff --git a/pyproject.toml b/pyproject.toml index 4e4257ceac..dc22cec78b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -91,6 +91,7 @@ select = [ "UP032", # f-string "UP034", # extraneous-parentheses "UP037", # quoted-annotation + "T20", # flake8-print ] ignore = [ @@ -101,6 +102,12 @@ ignore = [ "docs/**/*.*" = ["PLE"] "opentelemetry-sdk/tests/_configuration/test_models.py" = ["E402", "PLC0415"] "shim/opentelemetry-opentracing-shim/tests/*" = ["TID252"] +"scripts/*" = ["T20"] +"opentelemetry-sdk/tests/*" = ["T20"] +"opentelemetry-api/tests/*" = ["T20"] +"docs/getting_started/*" = ["T20"] +"docs/examples/*" = ["T20"] +"codegen/*" = ["T20"] [tool.ruff.lint.isort] known-third-party = [