Skip to content

UV and Ruff using the same pyproject.toml #19509

Answered by ntBre
TheXer asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for opening a discussion!

For example, using uv tool run ruff check . - this creates a lightweight venv, but the tool doesn’t use the settings from pyproject.toml—as expected, per the docs

Is that expected? That seems surprising to me, and ruff seems to respect my pyproject.toml when I tried this locally.

try.py that I had laying around from another issue:

import random

from tenacity import Retrying, retry_if_exception_type, stop_after_attempt


def try_lottery() -> float:
    for attempt in Retrying(
        retry=retry_if_exception_type(RuntimeError), stop=stop_after_attempt(3)
    ):
        with attempt:
            if random.random() < 0.001:  # Some stochastic condition

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TheXer
Comment options

Answer selected by TheXer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants