Commit 0e9f8ac
Luke Zhang
fix: suppress ruff PLC0415 for conditional gevent import
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.1 parent f3d0394 commit 0e9f8ac
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- opentelemetry-instrumentation/src/opentelemetry/instrumentation/auto_instrumentation
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
0 commit comments