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 29, 2024
1 parent 9b2884a commit 5c05f5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pympipool/scheduler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ def create_executor(
"""
max_cores = validate_number_of_cores(max_cores=max_cores, max_workers=max_workers)
check_init_function(block_allocation=block_allocation, init_function=init_function)
backend = validate_backend(backend=backend, flux_installed=flux_installed, slurm_installed=slurm_installed)
backend = validate_backend(
backend=backend, flux_installed=flux_installed, slurm_installed=slurm_installed
)
if backend == "flux":
check_oversubscribe(oversubscribe=oversubscribe)
check_command_line_argument_lst(
Expand Down
4 changes: 3 additions & 1 deletion tests/test_shared_input_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ def test_check_executor(self):

def test_check_backend(self):
with self.assertRaises(ValueError):
validate_backend(backend="test", slurm_installed=False, flux_installed=False)
validate_backend(
backend="test", slurm_installed=False, flux_installed=False
)

def test_check_init_function(self):
with self.assertRaises(ValueError):
Expand Down

0 comments on commit 5c05f5f

Please sign in to comment.