diff --git a/python/ruff.toml b/python/ruff.toml new file mode 100644 index 000000000..6ea05ff89 --- /dev/null +++ b/python/ruff.toml @@ -0,0 +1,2 @@ +# It is important to retain compatibility here. +target-version = "py37" diff --git a/python/uv/_find_uv.py b/python/uv/_find_uv.py index 12762e50c..ebe6b8d5a 100644 --- a/python/uv/_find_uv.py +++ b/python/uv/_find_uv.py @@ -76,11 +76,7 @@ def _matching_parents(path: str | None, match: str) -> str | None: if not all( fnmatch(part, match_part) - for part, match_part in ( - zip(reversed(parts), reversed(match_parts), strict=False) - if sys.version_info >= (3, 10) - else zip(reversed(parts), reversed(match_parts)) # noqa: B905 - ) + for part, match_part in zip(reversed(parts), reversed(match_parts)) ): return None