Skip to content
Snippets Groups Projects
Commit 113e6afc authored by André MAYORAZ's avatar André MAYORAZ
Browse files

Precommit updated configuration

parent 46190fdf
No related branches found
No related tags found
1 merge request!17Resolve "Switch to new CI/CD configuration"
...@@ -2,20 +2,20 @@ ...@@ -2,20 +2,20 @@
# See https://pre-commit.com/hooks.html for more hooks # See https://pre-commit.com/hooks.html for more hooks
repos: repos:
- repo: https://github.com/timothycrosley/isort - repo: https://github.com/timothycrosley/isort
rev: 5.10.1 rev: 5.12.0
hooks: hooks:
- id: isort - id: isort
args: [--settings-path, "pyproject.toml"] args: [--settings-path, "pyproject.toml"]
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 22.3.0 rev: 23.1.0
hooks: hooks:
- id: black - id: black
- repo: https://gitlab.com/pycqa/flake8 - repo: https://github.com/pycqa/flake8
rev: 3.9.2 rev: 6.0.0
hooks: hooks:
- id: flake8 - id: flake8
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0 rev: v4.4.0
hooks: hooks:
- id: check-ast - id: check-ast
- id: check-case-conflict - id: check-case-conflict
......
...@@ -33,7 +33,7 @@ def write_info( ...@@ -33,7 +33,7 @@ def write_info(
model_file, model_file,
skip_check, skip_check,
force, force,
**kwargs **kwargs,
): ):
info = """ info = """
scores: %s scores: %s
...@@ -95,7 +95,6 @@ def routine_fusion( ...@@ -95,7 +95,6 @@ def routine_fusion(
min_file_size=1000, min_file_size=1000,
do_training=True, do_training=True,
): ):
# load the model if model_file exists and no training data was provided # load the model if model_file exists and no training data was provided
if os.path.exists(model_file) and not do_training: if os.path.exists(model_file) and not do_training:
logger.info("Loading the algorithm from %s", model_file) logger.info("Loading the algorithm from %s", model_file)
...@@ -240,7 +239,7 @@ def fuse( ...@@ -240,7 +239,7 @@ def fuse(
model_file, model_file,
skip_check, skip_check,
force, force,
**kwargs **kwargs,
): ):
"""Score fusion """Score fusion
...@@ -288,7 +287,7 @@ def fuse( ...@@ -288,7 +287,7 @@ def fuse(
model_file, model_file,
skip_check, skip_check,
force, force,
**kwargs **kwargs,
) )
"""Do the actual fusion.""" """Do the actual fusion."""
......
...@@ -8,7 +8,6 @@ from bob.learn.em import KMeansMachine ...@@ -8,7 +8,6 @@ from bob.learn.em import KMeansMachine
def grouping(scores, gformat="random", npoints=500, seed=None, **kwargs): def grouping(scores, gformat="random", npoints=500, seed=None, **kwargs):
scores = np.asarray(scores) scores = np.asarray(scores)
if scores.size == 0: if scores.size == 0:
return scores return scores
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment