Bump ruff to 0.14.1 and fix new lint warnings #3842
Conversation
|
@lukeina2z any idea on why our tooling does not raise that? |
I guess he is running a newer ruff version than the one we run in CI. When running with 0.6.9 I don't get the warnings |
@emdneto you are right, I manually installed the missing packages. Here is my pip list: (.venv) anyio 4.11.0 7cf34de09d4c % python --version |
|
@lukeina2z could you please bump ruff version like in open-telemetry/opentelemetry-python#4782 ? |
|
@xrmx Bumped ruff to 0.14.1 and fixed new lint warnings. |
instrumentation-genai/opentelemetry-instrumentation-vertexai/tests/test_function_calling.py
Show resolved
Hide resolved
...ion-genai/opentelemetry-instrumentation-vertexai/tests/test_function_calling_experimental.py
Show resolved
Hide resolved
Thanks! a couple of comments but LGTM! |
The generate_instrumentation_bootstrap.py script was failing with a ruff linting error (PLC0415: import should be at top-level) when checking the auto_instrumentation module. Add noqa comment to suppress this error for the gevent monkey patch import, which is intentionally inside a try-except block for conditional loading. This allows the bootstrap generation script to complete successfully.
e61528b to
580d74c
Compare
…try#3842) The generate_instrumentation_bootstrap.py script was failing with a ruff linting error (PLC0415: import should be at top-level) when checking the auto_instrumentation module. Add noqa comment to suppress this error for the gevent monkey patch import, which is intentionally inside a try-except block for conditional loading. This allows the bootstrap generation script to complete successfully.
…try#3842) The generate_instrumentation_bootstrap.py script was failing with a ruff linting error (PLC0415: import should be at top-level) when checking the auto_instrumentation module. Add noqa comment to suppress this error for the gevent monkey patch import, which is intentionally inside a try-except block for conditional loading. This allows the bootstrap generation script to complete successfully.
Description
The generate_instrumentation_bootstrap.py script was failing with a ruff linting error (PLC0415: import should be at top-level) when checking the auto_instrumentation module.
Fixes #3878
Add noqa comment to suppress this error for the gevent monkey patch import, which is intentionally inside a try-except block for conditional loading. This allows the bootstrap generation script to complete successfully.
Error while running generate_instrumentation_bootstrap.py