From 5d9afabd706d4a1cd43e3fee836acdda2167881f Mon Sep 17 00:00:00 2001 From: "Moritz E. Beber" Date: Wed, 26 May 2021 16:13:10 +0200 Subject: [PATCH] style: fix flake8 ignore comments --- src/memote/suite/cli/runner.py | 4 ++-- src/memote/support/consistency_helpers.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/memote/suite/cli/runner.py b/src/memote/suite/cli/runner.py index 3eaeb94e0..a9160860c 100644 --- a/src/memote/suite/cli/runner.py +++ b/src/memote/suite/cli/runner.py @@ -444,7 +444,7 @@ def history( skip, exclusive, experimental=None, -): # noqa: D301 +): """ Re-compute test results for the git branch history. @@ -466,7 +466,7 @@ def history( 2. By giving memote specific commit hashes, it will re-compute test results for those only. This can also be achieved by supplying a commit range. - """ + """ # noqa: D301 # callbacks.validate_path(model) callbacks.git_installed() if location is None: diff --git a/src/memote/support/consistency_helpers.py b/src/memote/support/consistency_helpers.py index 2c95e1454..db89d49a2 100644 --- a/src/memote/support/consistency_helpers.py +++ b/src/memote/support/consistency_helpers.py @@ -141,7 +141,7 @@ def rank(matrix, atol=1e-13, rtol=0): return int((sigma >= tol).sum()) -def nullspace(matrix, atol=1e-13, rtol=0.0): # noqa: D402 +def nullspace(matrix, atol=1e-13, rtol=0.0): """ Compute an approximate basis for the null space (kernel) of a matrix. @@ -180,7 +180,7 @@ def nullspace(matrix, atol=1e-13, rtol=0.0): # noqa: D402 Adapted from: https://scipy.github.io/old-wiki/pages/Cookbook/RankNullspace.html - """ + """ # noqa: D402 matrix = np.atleast_2d(matrix) _, sigma, vh = svd(matrix) tol = max(atol, rtol * sigma[0])