From 6d49ea8b5ef7bcf6305b0408d0f530f535931dc0 Mon Sep 17 00:00:00 2001 From: "Jason C. Nucciarone" Date: Wed, 18 Sep 2024 15:41:25 -0400 Subject: [PATCH] chore(lint): apply formatting fixes and refactors Signed-off-by: Jason C. Nucciarone --- slurmutils/editors/cgroupconfig.py | 2 +- slurmutils/editors/editor.py | 2 +- tests/unit/editors/test_cgroupconfig.py | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/slurmutils/editors/cgroupconfig.py b/slurmutils/editors/cgroupconfig.py index 5afa30b..fb53fbf 100644 --- a/slurmutils/editors/cgroupconfig.py +++ b/slurmutils/editors/cgroupconfig.py @@ -22,7 +22,7 @@ from pathlib import Path from typing import Union -from ..models import CgroupConfig +from ..models import CgroupConfig from ..models.option import CgroupConfigOptionSet from .editor import ( clean, diff --git a/slurmutils/editors/editor.py b/slurmutils/editors/editor.py index 6f059ea..6544a04 100644 --- a/slurmutils/editors/editor.py +++ b/slurmutils/editors/editor.py @@ -49,7 +49,7 @@ def parse_line(options, line: str) -> Dict[str, Any]: raise EditorError( ( f"unable to parse configuration option {k}. " - + f"valid configuration options are {[opt for opt in options.keys()]}" + + f"valid configuration options are {list(options.keys())}" ) ) diff --git a/tests/unit/editors/test_cgroupconfig.py b/tests/unit/editors/test_cgroupconfig.py index 1a795fd..b0c8082 100644 --- a/tests/unit/editors/test_cgroupconfig.py +++ b/tests/unit/editors/test_cgroupconfig.py @@ -20,7 +20,6 @@ from slurmutils.editors import cgroupconfig - EXAMPLE_CGROUP_CONF = """# # `cgroup.conf` file generated at 2024-09-18 15:10:44.652017 by slurmutils. #