Skip to content

Commit

Permalink
Fix formatting of pyi files and make black run on them
Browse files Browse the repository at this point in the history
  • Loading branch information
Godsmith committed Aug 25, 2023
1 parent 743c2d8 commit 93811ec
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
7 changes: 6 additions & 1 deletion stubs/perlin_noise/rand_vec.pyi
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
4 changes: 3 additions & 1 deletion stubs/perlin_noise/tools.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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]: ...

0 comments on commit 93811ec

Please sign in to comment.