Skip to content

Commit bf919e9

Browse files
committed
ruff and mypy fixes
1 parent 3b1e87b commit bf919e9

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

vec_inf/client/_client_vars.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ class SlurmScriptTemplate(TypedDict):
129129
Commands for Singularity container setup
130130
imports : str
131131
Import statements and source commands
132+
env_vars : list[str]
133+
Environment variables to set
132134
singularity_command : str
133135
Template for Singularity execution command
134136
activate_venv : str
@@ -146,6 +148,7 @@ class SlurmScriptTemplate(TypedDict):
146148
shebang: ShebangConfig
147149
singularity_setup: list[str]
148150
imports: str
151+
env_vars: list[str]
149152
singularity_command: str
150153
activate_venv: str
151154
server_setup: ServerSetupConfig

vec_inf/client/_helper.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"""
66

77
import json
8-
import os
98
import time
109
import warnings
1110
from pathlib import Path

vec_inf/client/_slurm_script_generator.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,8 @@ def _generate_server_setup(self) -> str:
8989
"""
9090
server_script = ["\n"]
9191
if self.use_singularity:
92-
server_script.append(
93-
"\n".join(SLURM_SCRIPT_TEMPLATE["singularity_setup"])
94-
)
95-
server_script.append(
96-
"\n".join(SLURM_SCRIPT_TEMPLATE["env_vars"])
97-
)
92+
server_script.append("\n".join(SLURM_SCRIPT_TEMPLATE["singularity_setup"]))
93+
server_script.append("\n".join(SLURM_SCRIPT_TEMPLATE["env_vars"]))
9894
server_script.append(
9995
SLURM_SCRIPT_TEMPLATE["imports"].format(src_dir=self.params["src_dir"])
10096
)

vec_inf/client/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ class ModelConfig(BaseModel):
109109
default=cast(str, DEFAULT_ARGS["partition"]), description="GPU partition type"
110110
)
111111
exclude: Optional[str] = Field(
112-
default=None, description="Exclude certain nodes from the resources granted to the job"
112+
default=None,
113+
description="Exclude certain nodes from the resources granted to the job",
113114
)
114115
node_list: Optional[str] = Field(
115116
default=None, description="Request a specific list of nodes for deployment"

0 commit comments

Comments
 (0)