diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d4611cb..2712a77 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: name: black language: system entry: python -m black - types: [python] + types_or: [python, pyi] - id: ruff name: ruff language: system @@ -25,7 +25,7 @@ repos: language: system require_serial: true entry: python -m mypy - types: [python] + types_or: [python, pyi] - id: tests name: tests language: system diff --git a/stubs/perlin_noise/rand_vec.pyi b/stubs/perlin_noise/rand_vec.pyi index 2e138ca..8c18a58 100644 --- a/stubs/perlin_noise/rand_vec.pyi +++ b/stubs/perlin_noise/rand_vec.pyi @@ -1,5 +1,10 @@ from _typeshed import Incomplete -from perlin_noise.tools import dot as dot, fade as fade, product as product, sample_vector as sample_vector +from perlin_noise.tools import ( + dot as dot, + fade as fade, + product as product, + sample_vector as sample_vector, +) from typing import List, Tuple class RandVec: diff --git a/stubs/perlin_noise/tools.pyi b/stubs/perlin_noise/tools.pyi index 3fce469..f9e5290 100644 --- a/stubs/perlin_noise/tools.pyi +++ b/stubs/perlin_noise/tools.pyi @@ -5,4 +5,6 @@ def sample_vector(dimensions: int, seed: int) -> List[float]: ... def fade(given_value: float) -> float: ... def hasher(coors: Tuple[int]) -> int: ... def product(iterable: Union[List, Tuple]) -> float: ... -def each_with_each(arrays: List[Tuple[int, int]], prev=...) -> Generator[Tuple[int], None, None]: ... +def each_with_each( + arrays: List[Tuple[int, int]], prev=... +) -> Generator[Tuple[int], None, None]: ...