Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update pdm-multirun to pdm 2.26 API #12

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/pdm_multirun/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@

from pdm import termui
from pdm.cli.commands.run import Command as RunCommand
from pdm.cli.commands.run import Project
from pdm.cli.commands.use import Command as UseCommand
from pdm.cli.hooks import HookManager

if TYPE_CHECKING:
import argparse

from pdm.core import Core
from pdm.core import Core, Project

PYTHON_VERSIONS = os.getenv("PDM_MULTIRUN_VERSIONS", "").split() or [f"3.{minor}" for minor in range(8, 13)]
USE_VENVS = os.getenv("PDM_MULTIRUN_USE_VENVS", "") == "1"
Expand Down Expand Up @@ -61,7 +60,7 @@ def handle(self, project: Project, options: argparse.Namespace) -> None: # noqa
use_kwargs = {"venv" if options.venvs else "python": selected}
try:
self._use(project, options, **use_kwargs)
except Exception: # noqa: BLE001
except Exception:
if options.fail_fast:
raise
project.core.ui.echo(f"Skipped interpreter/venv: {selected}", verbosity=termui.Verbosity.DETAIL)
Expand Down
Loading