Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 13, 2024
1 parent 999e6cf commit 0b34b68
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 9 deletions.
33 changes: 25 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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
Expand Down Expand Up @@ -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 },
]
2 changes: 1 addition & 1 deletion src/py_discovery/_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0b34b68

Please sign in to comment.