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 Sep 28, 2024
1 parent 445e7d7 commit ca0e6a4
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 43 deletions.
20 changes: 10 additions & 10 deletions pysqa/wrapper/flux.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,16 @@ def convert_queue_status(queue_status_output: str) -> pandas.DataFrame:
return df

def render_submission_template(
self,
command: str,
job_name: str = "pysqa",
working_directory: str = os.path.abspath("."),
cores: int = 1,
memory_max: Optional[int] = None,
run_time_max: Optional[int] = None,
dependency_list: Optional[List[int]] = None,
submission_template: Union[str, Template] = template,
**kwargs,
self,
command: str,
job_name: str = "pysqa",
working_directory: str = os.path.abspath("."),
cores: int = 1,
memory_max: Optional[int] = None,
run_time_max: Optional[int] = None,
dependency_list: Optional[List[int]] = None,
submission_template: Union[str, Template] = template,
**kwargs,
) -> str:
"""
Generate the job submission template.
Expand Down
2 changes: 1 addition & 1 deletion pysqa/wrapper/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# Copyright (c) Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department
# Distributed under the terms of "New BSD License", see the LICENSE file.

from abc import ABC, abstractmethod
import os
from abc import ABC, abstractmethod
from typing import List, Optional, Union

import pandas
Expand Down
20 changes: 10 additions & 10 deletions pysqa/wrapper/lsf.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,16 @@ def convert_queue_status(queue_status_output: str) -> pandas.DataFrame:
return df

def render_submission_template(
self,
command: str,
job_name: str = "pysqa",
working_directory: str = os.path.abspath("."),
cores: int = 1,
memory_max: Optional[int] = None,
run_time_max: Optional[int] = None,
dependency_list: Optional[List[int]] = None,
submission_template: Union[str, Template] = template,
**kwargs,
self,
command: str,
job_name: str = "pysqa",
working_directory: str = os.path.abspath("."),
cores: int = 1,
memory_max: Optional[int] = None,
run_time_max: Optional[int] = None,
dependency_list: Optional[List[int]] = None,
submission_template: Union[str, Template] = template,
**kwargs,
) -> str:
"""
Generate the job submission template.
Expand Down
22 changes: 11 additions & 11 deletions pysqa/wrapper/moab.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ def get_queue_status_command(self) -> list[str]:
return ["mdiag", "-x"]

def render_submission_template(
self,
command: str,
job_name: str = "pysqa",
working_directory: str = os.path.abspath("."),
cores: int = 1,
memory_max: Optional[int] = None,
run_time_max: Optional[int] = None,
dependency_list: Optional[List[int]] = None,
submission_template: Union[str, Template] = template,
**kwargs,
self,
command: str,
job_name: str = "pysqa",
working_directory: str = os.path.abspath("."),
cores: int = 1,
memory_max: Optional[int] = None,
run_time_max: Optional[int] = None,
dependency_list: Optional[List[int]] = None,
submission_template: Union[str, Template] = template,
**kwargs,
) -> str:
"""
Generate the job submission template.
Expand Down Expand Up @@ -104,4 +104,4 @@ def render_submission_template(
dependency_list=dependency_list,
submission_template=submission_template,
**kwargs,
)
)
22 changes: 11 additions & 11 deletions pysqa/wrapper/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,16 @@ def dependencies(dependency_list: list[str]) -> list[str]:
return []

def render_submission_template(
self,
command: str,
job_name: str = "pysqa",
working_directory: str = os.path.abspath("."),
cores: int = 1,
memory_max: Optional[int] = None,
run_time_max: Optional[int] = None,
dependency_list: Optional[List[int]] = None,
submission_template: Union[str, Template] = template,
**kwargs,
self,
command: str,
job_name: str = "pysqa",
working_directory: str = os.path.abspath("."),
cores: int = 1,
memory_max: Optional[int] = None,
run_time_max: Optional[int] = None,
dependency_list: Optional[List[int]] = None,
submission_template: Union[str, Template] = template,
**kwargs,
) -> str:
"""
Generate the job submission template.
Expand Down Expand Up @@ -143,4 +143,4 @@ def render_submission_template(
dependency_list=dependency_list,
submission_template=submission_template,
**kwargs,
)
)

0 comments on commit ca0e6a4

Please sign in to comment.