Skip to content

Commit

Permalink
flake8/linter cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brifordwylie committed Jan 5, 2025
1 parent 10be30c commit 9b7c88e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/workbench/api/compound.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ def details(self) -> dict:

def __str__(self) -> str:
"""User-friendly string representation."""
str_output = f"Compound({self.id})\n SMILES: {self.smiles}\n Tags: {', '.join(self.tags) if self.tags else 'None'}"
str_output = (
f"Compound({self.id})\n SMILES: {self.smiles}\n Tags: {', '.join(self.tags) if self.tags else 'None'}"
)
str_output += f"\n Meta: {self.meta if self.meta else 'None'}"
return str_output

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,5 @@ def escape_markdown(value) -> str:
compound = Compound("AQSOL-0001")
compound.smiles = "CC(C)C1=CC=C(C=C1)C(=O)O"
compound.tags = ["toxic", "primary"]
compound.meta = {"toxic_elements": None, "toxic_groups": ['[C;$(C#CH)]','[C;$(C#CH)]']}
compound.meta = {"toxic_elements": None, "toxic_groups": ["[C;$(C#CH)]", "[C;$(C#CH)]"]}
PluginUnitTest(CompoundDetails, input_data=compound, theme="light").run()

0 comments on commit 9b7c88e

Please sign in to comment.