diff --git a/pyproject.toml b/pyproject.toml index c70c256..f7bc92f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,8 +17,12 @@ keywords = [ "virtual", ] license = "MIT" -maintainers = [{ name = "Bernát Gábor", email = "gaborjbernat@gmail.com" }] -authors = [{ name = "Bernát Gábor", email = "gaborjbernat@gmail.com" }] +maintainers = [ + { name = "Bernát Gábor", email = "gaborjbernat@gmail.com" }, +] +authors = [ + { name = "Bernát Gábor", email = "gaborjbernat@gmail.com" }, +] requires-python = ">=3.7" classifiers = [ "Development Status :: 5 - Production/Stable", @@ -43,7 +47,7 @@ dynamic = [ "version", ] dependencies = [ - 'typing-extensions>=4.7.1; python_version < "3.11"', + "typing-extensions>=4.7.1; python_version<'3.11'", ] optional-dependencies.docs = [ "furo>=2024.1.29", @@ -68,8 +72,14 @@ version.source = "vcs" [tool.ruff] line-length = 120 target-version = "py37" -lint.isort = { known-first-party = ["py_discovery"], required-imports = ["from __future__ import annotations"] } -lint.select = ["ALL"] +lint.isort = { known-first-party = [ + "py_discovery", +], required-imports = [ + "from __future__ import annotations", +] } +lint.select = [ + "ALL", +] lint.ignore = [ "INP001", # no implicit namespaces here "ANN101", # Missing type annotation for `self` in method @@ -117,12 +127,19 @@ paths.source = [ "*/src", "*\\src", ] -report.omit = [] +report.omit = [ +] run.parallel = true -run.plugins = ["covdefaults"] +run.plugins = [ + "covdefaults", +] [tool.mypy] python_version = "3.8" show_error_codes = true strict = true -overrides = [{ module = ["setuptools.*"], ignore_missing_imports = true }] +overrides = [ + { module = [ + "setuptools.*", + ], ignore_missing_imports = true }, +] diff --git a/src/py_discovery/_info.py b/src/py_discovery/_info.py index d80ba72..c9eeb61 100644 --- a/src/py_discovery/_info.py +++ b/src/py_discovery/_info.py @@ -402,7 +402,7 @@ def from_exe( if isinstance(proposed, PythonInfo) and resolve_to_host: try: proposed = proposed._resolve_to_system(proposed) # noqa: SLF001 - except Exception as exception: # noqa: BLE001 + except Exception as exception: if raise_on_error: raise logging.info("ignore %s due cannot resolve system due to %r", proposed.original_executable, exception)