Skip to content

Commit

Permalink
Update pre-commit hooks and type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolCat467 committed Apr 13, 2024
1 parent d8f1a7f commit 137869a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -28,11 +28,11 @@ repos:
types: [file]
types_or: [python, pyi]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.3.0
rev: 24.4.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.5
rev: v0.3.7
hooks:
- id: ruff
types: [file]
Expand Down
4 changes: 2 additions & 2 deletions src/sanescansrv/htmlgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def select_box(
return contain_in_box("<br>\n" + radios, box_title)


def bullet_list(values: list[str], **kwargs: TagArg) -> str:
def bullet_list(values: Iterable[str], **kwargs: TagArg) -> str:
"""Return HTML bulleted list from values."""
display = "\n".join(wrap_tag("li", v, block=False) for v in values)
return wrap_tag("ul", display, block=True, **kwargs)
Expand Down Expand Up @@ -550,7 +550,7 @@ def jinja_super_block() -> str:


def jinja_number_plural(
numeric_value: str,
numeric_value: int | str,
word: str,
) -> str:
"""Return word pluralized given numeric variable.
Expand Down

0 comments on commit 137869a

Please sign in to comment.