Skip to content

Commit 2420137

Browse files
blarghmateyCopilot
andcommitted
Fix aiopg lint wrapt pin, uv.lock format, and ruff blank lines
- tox.ini: pin wrapt>=1.0.0,<2.0.0 + Deprecated==1.2.14 for lint-instrumentation-aiopg; aiopg source uses __wrapped__ heavily and pylint's no-member error appeared when wrapt 2.x was installed - uv.lock: regenerate using pre-commit hook (uv v0.9.30) to fix trailing-slash format on registry URLs - httpx/test_httpx_integration.py: add blank line before try/except block (ruff I001/E303 formatting fix) - pika/utils.py: add blank line before try/except block (same ruff fix) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 8bcc2cf commit 2420137

File tree

4 files changed

+219
-215
lines changed

4 files changed

+219
-215
lines changed

instrumentation/opentelemetry-instrumentation-httpx/tests/test_httpx_integration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
import httpx
2424
import respx
25+
2526
try:
2627
from wrapt import BaseObjectProxy
2728
except ImportError:

instrumentation/opentelemetry-instrumentation-pika/src/opentelemetry/instrumentation/pika/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
)
88
from pika.channel import Channel
99
from pika.spec import Basic, BasicProperties
10+
1011
try:
1112
from wrapt import BaseObjectProxy
1213
except ImportError:

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,8 @@ deps =
719719
aiopg-wrapt1: -r {toxinidir}/instrumentation/opentelemetry-instrumentation-aiopg/test-requirements-wrapt1.txt
720720
aiopg-wrapt2: -r {toxinidir}/instrumentation/opentelemetry-instrumentation-aiopg/test-requirements-wrapt2.txt
721721
lint-instrumentation-aiopg: -r {toxinidir}/instrumentation/opentelemetry-instrumentation-aiopg/test-requirements.txt
722+
lint-instrumentation-aiopg: Deprecated==1.2.14
723+
lint-instrumentation-aiopg: wrapt>=1.0.0,<2.0.0
722724

723725
richconsole: {[testenv]test_deps}
724726
richconsole: -r {toxinidir}/exporter/opentelemetry-exporter-richconsole/test-requirements.txt

0 commit comments

Comments
 (0)