diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7767a7b..a8043c6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: - id: check-added-large-files - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.8.4 + rev: v0.9.2 hooks: # Run the linter. - id: ruff @@ -18,7 +18,7 @@ repos: # Run the formatter. - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.14.0' + rev: 'v1.14.1' hooks: - id: mypy additional_dependencies: [types-requests] diff --git a/mermaid/__main__.py b/mermaid/__main__.py index 242e168..b962b60 100644 --- a/mermaid/__main__.py +++ b/mermaid/__main__.py @@ -53,9 +53,9 @@ def __init__( """ if scale: assert 1 <= scale <= 3, "Scale must be between 1 and 3" - assert any( - [width, height] - ), "One or both of width and height must be provided" + assert any([width, height]), ( + "One or both of width and height must be provided" + ) self.__position: str = position if isinstance(position, str) else position.value self.__height = height if height else None