Skip to content

Commit

Permalink
Refactor writer to storage and implement the system card service
Browse files Browse the repository at this point in the history
  • Loading branch information
laurensWe committed May 28, 2024
1 parent 7476987 commit c783c15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ build-backend = "poetry.core.masonry.api"

# Ruff settings: https://docs.astral.sh/ruff/configuration/
[tool.ruff]
line-length = 150
line-length = 120
target-version = "py311"
src = ["tad","tests"]

Expand Down
2 changes: 1 addition & 1 deletion tad/services/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class WriteService(ABC):
def __init__(self, location: str, filename: str) -> None:
self.location = location
if not filename.endswith(".yaml"):
raise ValueError(f"Filename {filename} must end with .yaml instead of .{filename.split('.')[-1]}")
raise ValueError(f"Filename {filename} must end with .yaml instead of .{filename.split('.')[-1]}") # noqa: TRY003
self.filename = filename

@abstractmethod
Expand Down

0 comments on commit c783c15

Please sign in to comment.