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. #