Skip to content

Commit

Permalink
Bump pre-commit hooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocaccamo committed Oct 12, 2024
1 parent cf5b6ef commit 6d465a8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
repos:

- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
rev: v3.18.0
hooks:
- id: pyupgrade
args: ["--py310-plus"]
Expand All @@ -14,21 +14,21 @@ repos:
- id: fix-future-annotations

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
rev: v0.6.9
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.1
rev: v1.11.2
hooks:
- id: mypy
args: [--ignore-missing-imports, --strict]
exclude: "tests"

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: fix-encoding-pragma
args: [--remove]
Expand Down
7 changes: 4 additions & 3 deletions fontbro/font.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
from curses import ascii
from io import BytesIO
from pathlib import Path
from typing import Any, Generator
from typing import Any
from collections.abc import Generator
from typing.io import IO
import fsutil
import ots
Expand Down Expand Up @@ -485,7 +486,7 @@ def get_characters(
self,
*,
ignore_blank: bool = False,
) -> Generator[dict[str, Any], None, None]:
) -> Generator[dict[str, Any]]:
"""
Gets the font characters.
Expand Down Expand Up @@ -830,7 +831,7 @@ def get_format(

def get_glyphs(
self,
) -> Generator[dict[str, Any], None, None]:
) -> Generator[dict[str, Any]]:
"""
Gets the font glyphs and their own composition.
Expand Down
3 changes: 2 additions & 1 deletion fontbro/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from __future__ import annotations
import re
import unicodedata
from typing import Any, Callable
from typing import Any
from collections.abc import Callable

import fsutil

Expand Down

0 comments on commit 6d465a8

Please sign in to comment.