File tree 3 files changed +13
-15
lines changed
tiledb/ml/readers/_tensor_schema
3 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,10 @@ jobs:
37
37
pip install pytest-mock pytest-cov scikit-learn==1.0.2
38
38
pip install -e .[cloud]
39
39
40
- - name : Run mypy
40
+ - name : Run pre-commit hooks
41
41
run : |
42
- python -m venv mypyenv
43
- mypyenv/bin/pip install mypy
44
- mypyenv/bin/mypy .
45
- rm -rf mypyenv
42
+ pip install pre-commit
43
+ pre-commit run -a
46
44
47
45
- name : Run notebook examples
48
46
run : |
Original file line number Diff line number Diff line change 1
1
repos :
2
2
- repo : https://github.com/ambv/black
3
- rev : 22.3 .0
3
+ rev : 22.8 .0
4
4
hooks :
5
- - id : black
6
- - repo : https://gitlab.com/pycqa/flake8
7
- rev : 4.0.1
8
- hooks :
9
- - id : flake8
5
+ - id : black
10
6
- repo : https://github.com/pycqa/isort
11
7
rev : 5.10.1
12
8
hooks :
13
- - id : isort
14
- args : ["--profile", "black"]
9
+ - id : isort
10
+ args : ["--profile", "black"]
11
+ - repo : https://github.com/pycqa/flake8
12
+ rev : 5.0.4
13
+ hooks :
14
+ - id : flake8
15
15
- repo : https://github.com/pre-commit/mirrors-mypy
16
- rev : v0.961
16
+ rev : v0.981
17
17
hooks :
18
18
- id : mypy
Original file line number Diff line number Diff line change 25
25
Tensor = TypeVar ("Tensor" )
26
26
27
27
28
- @dataclass (frozen = True ) # type: ignore # https://github.com/python/mypy/issues/5374
28
+ @dataclass (frozen = True )
29
29
class TensorSchema (ABC , Generic [Tensor ]):
30
30
"""
31
31
A class to encapsulate the information needed for mapping a TileDB array to tensors.
You can’t perform that action at this time.
0 commit comments