Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
- black updated to v24 and some changes are required; nothing functional
- ran black and accepted

Signed-off-by: mimir-d <[email protected]>
  • Loading branch information
mimir-d committed Feb 3, 2024
1 parent ab6d8e8 commit 4f0e7a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Binary file added src/pci_lmt/.config.py.swp
Binary file not shown.
12 changes: 8 additions & 4 deletions src/pci_lmt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,17 @@ def margin_directions_tuple(self) -> ty.Tuple[int, int]:

def __str__(self) -> str:
bdf = textwrap.indent("\n".join(self.bdf_list), " " * 16).lstrip()
return textwrap.dedent(f"""
return textwrap.dedent(
f"""
{self.name}
receiver_number: {self.receiver_number}
bdf:
{bdf}
type: {self.margin_type}
direction: {self.margin_direction}
steps: {self.margin_steps}
""")
"""
)

@staticmethod
def from_json(data: ty.Dict[str, ty.Any]) -> "ConfigLmtGroup":
Expand All @@ -77,11 +79,13 @@ class PlatformConfig:

def __str__(self) -> str:
groups = textwrap.indent("".join(str(g) for g in self.lmt_groups), " " * 16).lstrip()
return textwrap.dedent(f"""
return textwrap.dedent(
f"""
platform: {self.platform_name}
groups:
{groups}
""")
"""
)

@staticmethod
def from_json(data: ty.Dict[str, ty.Any]) -> "PlatformConfig":
Expand Down

0 comments on commit 4f0e7a7

Please sign in to comment.