Skip to content
Snippets Groups Projects
Commit 918c9cc2 authored by Yannick DAYER's avatar Yannick DAYER
Browse files

Merge branch 'fix-qa' into 'master'

Auto-update pre-commit

See merge request !46
parents 872a2eb0 7b0d62cf
No related branches found
No related tags found
1 merge request!46Auto-update pre-commit
Pipeline #73331 passed
......@@ -2,23 +2,23 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/psf/black
rev: 22.10.0
rev: 22.12.0
hooks:
- id: black
- repo: https://github.com/pycqa/docformatter
rev: v1.5.0
rev: v1.5.1
hooks:
- id: docformatter
- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.982
rev: v0.991
hooks:
- id: mypy
args: [
......@@ -28,12 +28,12 @@ repos:
--ignore-missing-imports,
]
- repo: https://github.com/asottile/pyupgrade
rev: v3.1.0
rev: v3.3.1
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: check-ast
- id: check-added-large-files
......
......@@ -131,7 +131,6 @@ def write_file(filename, data, format="pillow") -> None:
``format`` : str
The format to use to read the file. By default imageio selects the appropriate for you based on the filename and its contents
"""
extension = os.path.splitext(filename)[1] # get the extension
if extension in hdf5_extensions:
......@@ -171,7 +170,6 @@ def load(inputs) -> np.ndarray:
``data`` : :py:class:`numpy.ndarray`
The data loaded from the given ``inputs``.
"""
from collections.abc import Iterable
import numpy
......@@ -261,7 +259,6 @@ def _generate_features(reader, paths, same_size=False):
features and the shape of the first feature. The rest of objects are
the actual values in features. The features are returned in C order.
"""
shape_determined = False
for i, path in enumerate(paths):
......
......@@ -41,7 +41,6 @@ def datafile(f, module=None, path="data"):
``filename`` : str
The full path of the file
"""
resource = __name__ if module is None else module
final_path = f if path is None else os.path.join(path, f)
import pkg_resources
......
......@@ -15,7 +15,6 @@ from bob.io.base import load, save
def read_write_check(data, numpy_assert=True):
"""Testing loading and save different file types."""
with tempfile.NamedTemporaryFile(prefix="bobtest_", suffix=".hdf5") as f:
save(data, f.name)
data2 = load(f.name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment