Skip to content

chore: Move mypy to uv#6436

Merged
sl0thentr0py merged 1 commit into
chore/migrate-to-tox-uvfrom
neel/uv/mypy
May 29, 2026
Merged

chore: Move mypy to uv#6436
sl0thentr0py merged 1 commit into
chore/migrate-to-tox-uvfrom
neel/uv/mypy

Conversation

@sl0thentr0py
Copy link
Copy Markdown
Member

@sl0thentr0py sl0thentr0py commented May 28, 2026

keeping this in a separate dependency group since we install lots of random packages just for typing

@sl0thentr0py sl0thentr0py changed the base branch from master to chore/migrate-to-tox-uv May 28, 2026 12:39
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 28, 2026

Codecov Results 📊

13 failed | Total: 13 | Pass Rate: 0% | Execution Time: 6.82s

❌ Failed Tests

test_basic[True]

File: tests.integrations.rq.test_rq
Suite: py3.10-rq-v2.9.0
Error: redis.exceptions.ResponseError: unknown command hello, with args beginning with:

Stack Trace
tests/integrations/rq/test_rq.py:57: in test_basic
    queue.enqueue(crashing_job, foo=42)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1043: in enqueue
    return self.enqueue_call(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:772: in enqueue_call
    return self.enqueue_job(job, pipeline=pipeline, at_front=at_front, unique=unique)
sentry_sdk/utils.py:1890: in runner
    return sentry_patched_function(*args, **kwargs)
sentry_sdk/integrations/rq.py:129: in sentry_patched_enqueue_job
    return old_enqueue_job(self, job, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1196: in enqueue_job
    pipe.execute()
sentry_sdk/integrations/redis/_sync_common.py:76: in sentry_patched_execute
    return old_execute(self, *args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/client.py:2040: in execute
    conn = self.connection_pool.get_connection()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/utils.py:258: in wrapper
    return func(*args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:3139: in get_connection
    connection.connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:24: in connect
    super().connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1006: in connect
    self.retry.call_with_retry(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/retry.py:120: in call_with_retry
    return do()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1007: in <lambda>
    lambda: self.connect_check_health(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1061: in connect_check_health
    self.on_connect_check_health(check_health=check_health)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1153: in on_connect_check_health
    self.handshake_metadata = self.read_response()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:71: in read_response
    raise response
E   redis.exceptions.ResponseError: unknown command `hello`, with args beginning with:

test_basic[False]

File: tests.integrations.rq.test_rq
Suite: py3.10-rq-v2.9.0
Error: redis.exceptions.ResponseError: unknown command hello, with args beginning with:

Stack Trace
tests/integrations/rq/test_rq.py:57: in test_basic
    queue.enqueue(crashing_job, foo=42)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1043: in enqueue
    return self.enqueue_call(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:772: in enqueue_call
    return self.enqueue_job(job, pipeline=pipeline, at_front=at_front, unique=unique)
sentry_sdk/utils.py:1890: in runner
    return sentry_patched_function(*args, **kwargs)
sentry_sdk/integrations/rq.py:129: in sentry_patched_enqueue_job
    return old_enqueue_job(self, job, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1196: in enqueue_job
    pipe.execute()
sentry_sdk/integrations/redis/_sync_common.py:76: in sentry_patched_execute
    return old_execute(self, *args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/client.py:2040: in execute
    conn = self.connection_pool.get_connection()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/utils.py:258: in wrapper
    return func(*args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:3139: in get_connection
    connection.connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:24: in connect
    super().connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1006: in connect
    self.retry.call_with_retry(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/retry.py:120: in call_with_retry
    return do()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1007: in <lambda>
    lambda: self.connect_check_health(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1061: in connect_check_health
    self.on_connect_check_health(check_health=check_health)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1153: in on_connect_check_health
    self.handshake_metadata = self.read_response()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:71: in read_response
    raise response
E   redis.exceptions.ResponseError: unknown command `hello`, with args beginning with:

test_transport_shutdown

File: tests.integrations.rq.test_rq
Suite: py3.10-rq-v2.9.0
Error: redis.exceptions.ResponseError: unknown command hello, with args beginning with:

Stack Trace
tests/integrations/rq/test_rq.py:94: in test_transport_shutdown
    queue.enqueue(crashing_job, foo=42)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1043: in enqueue
    return self.enqueue_call(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:772: in enqueue_call
    return self.enqueue_job(job, pipeline=pipeline, at_front=at_front, unique=unique)
sentry_sdk/utils.py:1890: in runner
    return sentry_patched_function(*args, **kwargs)
sentry_sdk/integrations/rq.py:129: in sentry_patched_enqueue_job
    return old_enqueue_job(self, job, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1196: in enqueue_job
    pipe.execute()
sentry_sdk/integrations/redis/_sync_common.py:76: in sentry_patched_execute
    return old_execute(self, *args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/client.py:2040: in execute
    conn = self.connection_pool.get_connection()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/utils.py:258: in wrapper
    return func(*args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:3139: in get_connection
    connection.connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:24: in connect
    super().connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1006: in connect
    self.retry.call_with_retry(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/retry.py:120: in call_with_retry
    return do()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1007: in <lambda>
    lambda: self.connect_check_health(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1061: in connect_check_health
    self.on_connect_check_health(check_health=check_health)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1153: in on_connect_check_health
    self.handshake_metadata = self.read_response()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:71: in read_response
    raise response
E   redis.exceptions.ResponseError: unknown command `hello`, with args beginning with:

test_transaction_with_error[True]

File: tests.integrations.rq.test_rq
Suite: py3.10-rq-v2.9.0
Error: redis.exceptions.ResponseError: unknown command hello, with args beginning with:

Stack Trace
tests/integrations/rq/test_rq.py:121: in test_transaction_with_error
    queue.enqueue(chew_up_shoes, "Charlie", "Katie", shoes="flip-flops")
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1043: in enqueue
    return self.enqueue_call(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:772: in enqueue_call
    return self.enqueue_job(job, pipeline=pipeline, at_front=at_front, unique=unique)
sentry_sdk/utils.py:1890: in runner
    return sentry_patched_function(*args, **kwargs)
sentry_sdk/integrations/rq.py:129: in sentry_patched_enqueue_job
    return old_enqueue_job(self, job, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1196: in enqueue_job
    pipe.execute()
sentry_sdk/integrations/redis/_sync_common.py:76: in sentry_patched_execute
    return old_execute(self, *args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/client.py:2040: in execute
    conn = self.connection_pool.get_connection()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/utils.py:258: in wrapper
    return func(*args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:3139: in get_connection
    connection.connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:24: in connect
    super().connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1006: in connect
    self.retry.call_with_retry(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/retry.py:120: in call_with_retry
    return do()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1007: in <lambda>
    lambda: self.connect_check_health(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1061: in connect_check_health
    self.on_connect_check_health(check_health=check_health)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1153: in on_connect_check_health
    self.handshake_metadata = self.read_response()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:71: in read_response
    raise response
E   redis.exceptions.ResponseError: unknown command `hello`, with args beginning with:

test_transaction_with_error[False]

File: tests.integrations.rq.test_rq
Suite: py3.10-rq-v2.9.0
Error: redis.exceptions.ResponseError: unknown command hello, with args beginning with:

Stack Trace
tests/integrations/rq/test_rq.py:121: in test_transaction_with_error
    queue.enqueue(chew_up_shoes, "Charlie", "Katie", shoes="flip-flops")
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1043: in enqueue
    return self.enqueue_call(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:772: in enqueue_call
    return self.enqueue_job(job, pipeline=pipeline, at_front=at_front, unique=unique)
sentry_sdk/utils.py:1890: in runner
    return sentry_patched_function(*args, **kwargs)
sentry_sdk/integrations/rq.py:129: in sentry_patched_enqueue_job
    return old_enqueue_job(self, job, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1196: in enqueue_job
    pipe.execute()
sentry_sdk/integrations/redis/_sync_common.py:76: in sentry_patched_execute
    return old_execute(self, *args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/client.py:2040: in execute
    conn = self.connection_pool.get_connection()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/utils.py:258: in wrapper
    return func(*args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:3139: in get_connection
    connection.connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:24: in connect
    super().connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1006: in connect
    self.retry.call_with_retry(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/retry.py:120: in call_with_retry
    return do()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1007: in <lambda>
    lambda: self.connect_check_health(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1061: in connect_check_health
    self.on_connect_check_health(check_health=check_health)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1153: in on_connect_check_health
    self.handshake_metadata = self.read_response()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:71: in read_response
    raise response
E   redis.exceptions.ResponseError: unknown command `hello`, with args beginning with:

test_error_has_trace_context_if_tracing_disabled

File: tests.integrations.rq.test_rq
Suite: py3.10-rq-v2.9.0
Error: redis.exceptions.ResponseError: unknown command hello, with args beginning with:

Stack Trace
tests/integrations/rq/test_rq.py:163: in test_error_has_trace_context_if_tracing_disabled
    queue.enqueue(crashing_job, foo=None)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1043: in enqueue
    return self.enqueue_call(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:772: in enqueue_call
    return self.enqueue_job(job, pipeline=pipeline, at_front=at_front, unique=unique)
sentry_sdk/utils.py:1890: in runner
    return sentry_patched_function(*args, **kwargs)
sentry_sdk/integrations/rq.py:129: in sentry_patched_enqueue_job
    return old_enqueue_job(self, job, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1196: in enqueue_job
    pipe.execute()
sentry_sdk/integrations/redis/_sync_common.py:76: in sentry_patched_execute
    return old_execute(self, *args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/client.py:2040: in execute
    conn = self.connection_pool.get_connection()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/utils.py:258: in wrapper
    return func(*args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:3139: in get_connection
    connection.connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:24: in connect
    super().connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1006: in connect
    self.retry.call_with_retry(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/retry.py:120: in call_with_retry
    return do()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1007: in <lambda>
    lambda: self.connect_check_health(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1061: in connect_check_health
    self.on_connect_check_health(check_health=check_health)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1153: in on_connect_check_health
    self.handshake_metadata = self.read_response()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:71: in read_response
    raise response
E   redis.exceptions.ResponseError: unknown command `hello`, with args beginning with:

test_tracing_enabled

File: tests.integrations.rq.test_rq
Suite: py3.10-rq-v2.9.0
Error: redis.exceptions.ResponseError: unknown command hello, with args beginning with:

Stack Trace
tests/integrations/rq/test_rq.py:182: in test_tracing_enabled
    queue.enqueue(crashing_job, foo=None)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1043: in enqueue
    return self.enqueue_call(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:772: in enqueue_call
    return self.enqueue_job(job, pipeline=pipeline, at_front=at_front, unique=unique)
sentry_sdk/utils.py:1890: in runner
    return sentry_patched_function(*args, **kwargs)
sentry_sdk/integrations/rq.py:129: in sentry_patched_enqueue_job
    return old_enqueue_job(self, job, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1196: in enqueue_job
    pipe.execute()
sentry_sdk/integrations/redis/_sync_common.py:76: in sentry_patched_execute
    return old_execute(self, *args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/client.py:2040: in execute
    conn = self.connection_pool.get_connection()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/utils.py:258: in wrapper
    return func(*args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:3139: in get_connection
    connection.connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:24: in connect
    super().connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1006: in connect
    self.retry.call_with_retry(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/retry.py:120: in call_with_retry
    return do()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1007: in <lambda>
    lambda: self.connect_check_health(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1061: in connect_check_health
    self.on_connect_check_health(check_health=check_health)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1153: in on_connect_check_health
    self.handshake_metadata = self.read_response()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:71: in read_response
    raise response
E   redis.exceptions.ResponseError: unknown command `hello`, with args beginning with:

test_tracing_disabled

File: tests.integrations.rq.test_rq
Suite: py3.10-rq-v2.9.0
Error: redis.exceptions.ResponseError: unknown command hello, with args beginning with:

Stack Trace
tests/integrations/rq/test_rq.py:204: in test_tracing_disabled
    queue.enqueue(crashing_job, foo=None)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1043: in enqueue
    return self.enqueue_call(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:772: in enqueue_call
    return self.enqueue_job(job, pipeline=pipeline, at_front=at_front, unique=unique)
sentry_sdk/utils.py:1890: in runner
    return sentry_patched_function(*args, **kwargs)
sentry_sdk/integrations/rq.py:129: in sentry_patched_enqueue_job
    return old_enqueue_job(self, job, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1196: in enqueue_job
    pipe.execute()
sentry_sdk/integrations/redis/_sync_common.py:76: in sentry_patched_execute
    return old_execute(self, *args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/client.py:2040: in execute
    conn = self.connection_pool.get_connection()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/utils.py:258: in wrapper
    return func(*args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:3139: in get_connection
    connection.connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:24: in connect
    super().connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1006: in connect
    self.retry.call_with_retry(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/retry.py:120: in call_with_retry
    return do()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1007: in <lambda>
    lambda: self.connect_check_health(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1061: in connect_check_health
    self.on_connect_check_health(check_health=check_health)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1153: in on_connect_check_health
    self.handshake_metadata = self.read_response()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:71: in read_response
    raise response
E   redis.exceptions.ResponseError: unknown command `hello`, with args beginning with:

test_transaction_no_error[True]

File: tests.integrations.rq.test_rq
Suite: py3.10-rq-v2.9.0
Error: redis.exceptions.ResponseError: unknown command hello, with args beginning with:

Stack Trace
tests/integrations/rq/test_rq.py:233: in test_transaction_no_error
    queue.enqueue(do_trick, "Maisey", trick="kangaroo")
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1043: in enqueue
    return self.enqueue_call(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:772: in enqueue_call
    return self.enqueue_job(job, pipeline=pipeline, at_front=at_front, unique=unique)
sentry_sdk/utils.py:1890: in runner
    return sentry_patched_function(*args, **kwargs)
sentry_sdk/integrations/rq.py:129: in sentry_patched_enqueue_job
    return old_enqueue_job(self, job, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1196: in enqueue_job
    pipe.execute()
sentry_sdk/integrations/redis/_sync_common.py:76: in sentry_patched_execute
    return old_execute(self, *args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/client.py:2040: in execute
    conn = self.connection_pool.get_connection()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/utils.py:258: in wrapper
    return func(*args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:3139: in get_connection
    connection.connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:24: in connect
    super().connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1006: in connect
    self.retry.call_with_retry(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/retry.py:120: in call_with_retry
    return do()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1007: in <lambda>
    lambda: self.connect_check_health(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1061: in connect_check_health
    self.on_connect_check_health(check_health=check_health)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1153: in on_connect_check_health
    self.handshake_metadata = self.read_response()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:71: in read_response
    raise response
E   redis.exceptions.ResponseError: unknown command `hello`, with args beginning with:

test_transaction_no_error[False]

File: tests.integrations.rq.test_rq
Suite: py3.10-rq-v2.9.0
Error: redis.exceptions.ResponseError: unknown command hello, with args beginning with:

Stack Trace
tests/integrations/rq/test_rq.py:233: in test_transaction_no_error
    queue.enqueue(do_trick, "Maisey", trick="kangaroo")
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1043: in enqueue
    return self.enqueue_call(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:772: in enqueue_call
    return self.enqueue_job(job, pipeline=pipeline, at_front=at_front, unique=unique)
sentry_sdk/utils.py:1890: in runner
    return sentry_patched_function(*args, **kwargs)
sentry_sdk/integrations/rq.py:129: in sentry_patched_enqueue_job
    return old_enqueue_job(self, job, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1196: in enqueue_job
    pipe.execute()
sentry_sdk/integrations/redis/_sync_common.py:76: in sentry_patched_execute
    return old_execute(self, *args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/client.py:2040: in execute
    conn = self.connection_pool.get_connection()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/utils.py:258: in wrapper
    return func(*args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:3139: in get_connection
    connection.connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:24: in connect
    super().connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1006: in connect
    self.retry.call_with_retry(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/retry.py:120: in call_with_retry
    return do()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1007: in <lambda>
    lambda: self.connect_check_health(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1061: in connect_check_health
    self.on_connect_check_health(check_health=check_health)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1153: in on_connect_check_health
    self.handshake_metadata = self.read_response()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:71: in read_response
    raise response
E   redis.exceptions.ResponseError: unknown command `hello`, with args beginning with:

test_traces_sampler_gets_correct_values_in_sampling_context

File: tests.integrations.rq.test_rq
Suite: py3.10-rq-v2.9.0
Error: redis.exceptions.ResponseError: unknown command hello, with args beginning with:

Stack Trace
tests/integrations/rq/test_rq.py:264: in test_traces_sampler_gets_correct_values_in_sampling_context
    queue.enqueue(do_trick, "Bodhi", trick="roll over")
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1043: in enqueue
    return self.enqueue_call(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:772: in enqueue_call
    return self.enqueue_job(job, pipeline=pipeline, at_front=at_front, unique=unique)
sentry_sdk/utils.py:1890: in runner
    return sentry_patched_function(*args, **kwargs)
sentry_sdk/integrations/rq.py:129: in sentry_patched_enqueue_job
    return old_enqueue_job(self, job, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1196: in enqueue_job
    pipe.execute()
sentry_sdk/integrations/redis/_sync_common.py:76: in sentry_patched_execute
    return old_execute(self, *args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/client.py:2040: in execute
    conn = self.connection_pool.get_connection()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/utils.py:258: in wrapper
    return func(*args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:3139: in get_connection
    connection.connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:24: in connect
    super().connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1006: in connect
    self.retry.call_with_retry(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/retry.py:120: in call_with_retry
    return do()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1007: in <lambda>
    lambda: self.connect_check_health(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1061: in connect_check_health
    self.on_connect_check_health(check_health=check_health)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1153: in on_connect_check_health
    self.handshake_metadata = self.read_response()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:71: in read_response
    raise response
E   redis.exceptions.ResponseError: unknown command `hello`, with args beginning with:

test_job_with_retries

File: tests.integrations.rq.test_rq
Suite: py3.10-rq-v2.9.0
Error: redis.exceptions.ResponseError: unknown command hello, with args beginning with:

Stack Trace
tests/integrations/rq/test_rq.py:295: in test_job_with_retries
    queue.enqueue(crashing_job, foo=42, retry=rq.Retry(max=1))
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1043: in enqueue
    return self.enqueue_call(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:772: in enqueue_call
    return self.enqueue_job(job, pipeline=pipeline, at_front=at_front, unique=unique)
sentry_sdk/utils.py:1890: in runner
    return sentry_patched_function(*args, **kwargs)
sentry_sdk/integrations/rq.py:129: in sentry_patched_enqueue_job
    return old_enqueue_job(self, job, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1196: in enqueue_job
    pipe.execute()
sentry_sdk/integrations/redis/_sync_common.py:76: in sentry_patched_execute
    return old_execute(self, *args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/client.py:2040: in execute
    conn = self.connection_pool.get_connection()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/utils.py:258: in wrapper
    return func(*args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:3139: in get_connection
    connection.connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:24: in connect
    super().connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1006: in connect
    self.retry.call_with_retry(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/retry.py:120: in call_with_retry
    return do()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1007: in <lambda>
    lambda: self.connect_check_health(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1061: in connect_check_health
    self.on_connect_check_health(check_health=check_health)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1153: in on_connect_check_health
    self.handshake_metadata = self.read_response()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:71: in read_response
    raise response
E   redis.exceptions.ResponseError: unknown command `hello`, with args beginning with:

test_span_origin

File: tests.integrations.rq.test_rq
Suite: py3.10-rq-v2.9.0
Error: redis.exceptions.ResponseError: unknown command hello, with args beginning with:

Stack Trace
tests/integrations/rq/test_rq.py:308: in test_span_origin
    queue.enqueue(do_trick, "Maisey", trick="kangaroo")
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1043: in enqueue
    return self.enqueue_call(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:772: in enqueue_call
    return self.enqueue_job(job, pipeline=pipeline, at_front=at_front, unique=unique)
sentry_sdk/utils.py:1890: in runner
    return sentry_patched_function(*args, **kwargs)
sentry_sdk/integrations/rq.py:129: in sentry_patched_enqueue_job
    return old_enqueue_job(self, job, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/rq/queue.py:1196: in enqueue_job
    pipe.execute()
sentry_sdk/integrations/redis/_sync_common.py:76: in sentry_patched_execute
    return old_execute(self, *args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/client.py:2040: in execute
    conn = self.connection_pool.get_connection()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/utils.py:258: in wrapper
    return func(*args, **kwargs)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:3139: in get_connection
    connection.connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:24: in connect
    super().connect()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1006: in connect
    self.retry.call_with_retry(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/retry.py:120: in call_with_retry
    return do()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1007: in <lambda>
    lambda: self.connect_check_health(
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1061: in connect_check_health
    self.on_connect_check_health(check_health=check_health)
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/redis/connection.py:1153: in on_connect_check_health
    self.handshake_metadata = self.read_response()
.tox/py3.10-rq-v2.9.0/lib/python3.10/site-packages/fakeredis/_connection.py:71: in read_response
    raise response
E   redis.exceptions.ResponseError: unknown command `hello`, with args beginning with:

✅ Patch coverage is 100.00%. Project has 16658 uncovered lines.


Generated by Codecov Action

@sl0thentr0py sl0thentr0py changed the title neel/uv/mypy chore: Move mypy to uv May 28, 2026
@sl0thentr0py sl0thentr0py force-pushed the chore/migrate-to-tox-uv branch from ad243c4 to 07280c2 Compare May 28, 2026 12:41
@sl0thentr0py sl0thentr0py marked this pull request as ready for review May 28, 2026 12:52
@sl0thentr0py sl0thentr0py requested a review from a team as a code owner May 28, 2026 12:52
@sl0thentr0py
Copy link
Copy Markdown
Member Author

test failure is due to new redis 8 release for rq, will fix separately, ignore here

@sl0thentr0py sl0thentr0py merged commit 81acec3 into chore/migrate-to-tox-uv May 29, 2026
159 of 171 checks passed
@sl0thentr0py sl0thentr0py deleted the neel/uv/mypy branch May 29, 2026 10:49
sl0thentr0py added a commit that referenced this pull request May 29, 2026
## Description

* add `uv` and `tox-uv` to manage python envs and packages instead of
`pip`
* use `astral-sh/setup-uv` action in CI instead of `setup-python`,
top-level `uv` always uses `python3.14`
* except for 3.6 and 3.7, all python versions now go through `tox-uv`
* 3.6 and 3.7 have their own containers which `uv` picks up through
`UV_PYTHON_REFERENCE`
* the SDK is now installed as part of `deps` and not via `package` so
`uv` resolves all deps in a single pass, this was necessary since `uv`
resolution is stricter than `pip`
* `runtox.sh` also uses `uv run tox`
* some other pins were necessary to make CI pass
* pre-releases need a special `UV_PRERELEASE=ALL` for resolution to
work, we do not relax this throughout because `uv` then fetches
pre-releases for httpx and such breaking half the matrix

### Dev Flow Changes

No need for `asdf` or `pyenv` now if you were using it before, just use
`uv`, it will manage both `tox` and required python versions internally.

New commands:

- List tox envs: `uv run tox l`
- Integration tests: `uv run tox -e py3.14-{integration}-v{version}`
- Common tests: `uv run tox -e py3.14-common`
- Run specific test file:
`TESTPATH=tests/integrations/logging/test_logging.py uv run tox -e
py3.14-common`
- Run single test: `TESTPATH=tests/path/to/test_file.py uv run tox -e
py3.14-common -- -k "test_name"`


### TODO

* [ ] coverage (which is a mess anyway)
* [x] dev flow with `uv` as well - linters, top level tox, test file
generation all managed with `uv`
  * [x] ruff: #6430
  * [x] mypy: #6436
* [x] scripts/dist/apidocs/aws:
#6439
* [ ] dev flow docs (asdf) for python 3.6/3.7 since `uv` does not manage
those

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Neel Shah <neel.shah@sentry.io>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants