mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 15:08:02 -05:00
add flake8 to precommit
This commit is contained in:
@@ -7,6 +7,12 @@ repos:
|
||||
language: system
|
||||
always_run: true
|
||||
pass_filenames: false
|
||||
- id: flake8
|
||||
name: flake8
|
||||
entry: flake8 tinygrad/ --indent-size=2 --select=F,E112,E113,E304,E502,E702,E703,E71,E72,E731,W191,W6 --statistics -j4
|
||||
language: system
|
||||
always_run: true
|
||||
pass_filenames: false
|
||||
- id: mypy
|
||||
name: mypy
|
||||
entry: mypy tinygrad/ --ignore-missing-imports
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
from __future__ import annotations
|
||||
import os
|
||||
import functools
|
||||
from typing import Tuple, Union, List, Optional, Any
|
||||
from typing import Tuple, Union, List, Optional
|
||||
from tinygrad.helpers import prod
|
||||
from tinygrad.shape.symbolic import Variable
|
||||
|
||||
|
||||
Reference in New Issue
Block a user