Skip to content

Commit c4d70b1

Browse files
committed
ruff and mypy fixes
1 parent 40742ad commit c4d70b1

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

tests/test_imports.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ def test_imports(self):
2323
import vec_inf.client._helper
2424
import vec_inf.client._slurm_script_generator
2525
import vec_inf.client._slurm_templates
26-
import vec_inf.client._slurm_vars # noqa: F401
26+
import vec_inf.client._slurm_vars
2727
import vec_inf.client._utils
2828
import vec_inf.client.api
2929
import vec_inf.client.config
30-
import vec_inf.client.models
30+
import vec_inf.client.models # noqa: F401
3131

3232
except ImportError as e:
3333
pytest.fail(f"Import failed: {e}")

vec_inf/client/_slurm_vars.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,8 @@ def load_yaml_config(path: Path) -> dict[str, Any]:
6666
MAX_CPUS_PER_TASK = _config["limits"]["max_cpus_per_task"]
6767

6868
# Create dynamic Literal types
69-
QOS: TypeAlias = str # Runtime validation will handle the actual values
70-
PARTITION: TypeAlias = str # Runtime validation will handle the actual values
71-
QOS = Literal[tuple(_config["allowed_values"]["qos"])]
72-
PARTITION = Literal[tuple(_config["allowed_values"]["partition"])]
69+
QOS = Literal[tuple(_config["allowed_values"]["qos"])] # type: ignore[valid-type]
70+
PARTITION = Literal[tuple(_config["allowed_values"]["partition"])] # type: ignore[valid-type]
7371

7472
# Extract default arguments
7573
DEFAULT_ARGS = _config["default_args"]

vec_inf/client/_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ def process_config(config: dict[str, Any]) -> list[ModelConfig]:
223223
ModelConfig(model_name=name, **model_data)
224224
for name, model_data in config.get("models", {}).items()
225225
]
226-
227226

228227
def update_config(
229228
config: dict[str, Any], user_config: dict[str, Any]

0 commit comments

Comments
 (0)