add flake8 to precommit

This commit is contained in:
George Hotz
2023-01-26 22:31:45 -08:00
parent f4b571039b
commit 82e58108e3
2 changed files with 7 additions and 1 deletions

View File

@@ -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

View File

@@ -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