Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#235)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.4 → v0.9.2](astral-sh/ruff-pre-commit@v0.8.4...v0.9.2)
- [github.com/pre-commit/mirrors-mypy: v1.14.0 → v1.14.1](pre-commit/mirrors-mypy@v1.14.0...v1.14.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jan 25, 2025
1 parent 0f19226 commit c8c707d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ 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
args: [ --fix ]
# 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]
Expand Down
6 changes: 3 additions & 3 deletions mermaid/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8c707d

Please sign in to comment.