Skip to content

Commit

Permalink
DOC: added pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
jacky1c committed Aug 28, 2024
1 parent 07f46e9 commit ab03f0d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
3 changes: 2 additions & 1 deletion minitorch/tensor_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@


class MapProto(Protocol):
def __call__(self, x: Tensor, out: Optional[Tensor] = ..., /) -> Tensor: ...
def __call__(self, x: Tensor, out: Optional[Tensor] = ..., /) -> Tensor:
...


class TensorOps:
Expand Down

0 comments on commit ab03f0d

Please sign in to comment.