Skip to content

Commit 7f029ca

Browse files
committed
Update precommit-hooks
1 parent b9baa54 commit 7f029ca

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,10 @@ jobs:
3737
pip install pytest-mock pytest-cov scikit-learn==1.0.2
3838
pip install -e .[cloud]
3939
40-
- name: Run mypy
40+
- name: Run pre-commit hooks
4141
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
4644
4745
- name: Run notebook examples
4846
run: |

.pre-commit-config.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
repos:
22
- repo: https://github.com/ambv/black
3-
rev: 22.3.0
3+
rev: 22.8.0
44
hooks:
5-
- id: black
6-
- repo: https://gitlab.com/pycqa/flake8
7-
rev: 4.0.1
8-
hooks:
9-
- id: flake8
5+
- id: black
106
- repo: https://github.com/pycqa/isort
117
rev: 5.10.1
128
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
1515
- repo: https://github.com/pre-commit/mirrors-mypy
16-
rev: v0.961
16+
rev: v0.981
1717
hooks:
1818
- id: mypy

tiledb/ml/readers/_tensor_schema/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
Tensor = TypeVar("Tensor")
2626

2727

28-
@dataclass(frozen=True) # type: ignore # https://github.com/python/mypy/issues/5374
28+
@dataclass(frozen=True)
2929
class TensorSchema(ABC, Generic[Tensor]):
3030
"""
3131
A class to encapsulate the information needed for mapping a TileDB array to tensors.

0 commit comments

Comments
 (0)