Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
hooks:
- id: codespell
- repo: 'https://github.com/charliermarsh/ruff-pre-commit'
rev: v0.14.14
rev: v0.15.0
hooks:
- id: ruff
args:
Expand Down
8 changes: 4 additions & 4 deletions taps/executor/parsl.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def _validate_address_name(cls, kind: str) -> str:
# Parse the class name if the full path is passed. For example,
# parsl.addresses.address_by_hostname and address_by_hostname should
# both be valid.
cls_name = kind.split('.')[-1]
cls_name = kind.rsplit('.', maxsplit=1)[-1]
try:
getattr(parsl.addresses, cls_name)
except AttributeError as e:
Expand Down Expand Up @@ -349,7 +349,7 @@ class ProviderConfig(BaseModel):
def _validate_provider_name(cls, kind: str) -> str:
# Parse the class name if the full path is passed. For example,
# parsl.providers.SlurmProvider and SlurmProvider should both be valid.
cls_name = kind.split('.')[-1]
cls_name = kind.rsplit('.', maxsplit=1)[-1]
try:
getattr(parsl.providers, cls_name)
except AttributeError as e:
Expand Down Expand Up @@ -404,7 +404,7 @@ class LauncherConfig(BaseModel):
def _validate_launcher_name(cls, kind: str) -> str:
# Parse the class name if the full path is passed. For example,
# parsl.launchers.SrunLauncher and SrunLauncher should both be valid.
cls_name = kind.split('.')[-1]
cls_name = kind.rsplit('.', maxsplit=1)[-1]
try:
getattr(parsl.launchers, cls_name)
except AttributeError as e:
Expand Down Expand Up @@ -452,7 +452,7 @@ def _validate_manager_selector_name(cls, kind: str) -> str:
# Parse the class name if the full path is passed. For example,
# parsl.executors.high_throughput.manager_selector.RandomManagerSelector # noqa: E501
# and RandomManagerSelector should both be valid.
cls_name = kind.split('.')[-1]
cls_name = kind.rsplit('.', maxsplit=1)[-1]
try:
import parsl.executors.high_throughput.manager_selector
except ImportError as e: # pragma: no cover
Expand Down