Skip to content

Commit

Permalink
chore(lint): apply formatting fixes and refactors
Browse files Browse the repository at this point in the history
Signed-off-by: Jason C. Nucciarone <[email protected]>
  • Loading branch information
NucciTheBoss committed Sep 18, 2024
1 parent f49bb70 commit 6db570c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion slurmutils/editors/cgroupconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion slurmutils/editors/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())}"
)
)

Expand Down
1 change: 0 additions & 1 deletion tests/unit/editors/test_cgroupconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand Down

0 comments on commit 6db570c

Please sign in to comment.