aboutsummaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorTim Hall <tim.hall@arm.com>2023-07-06 11:42:02 +0100
committerTim Hall <tim.hall@arm.com>2023-07-06 12:49:00 +0100
commit762d3acb93c597b5299864f9b3ee551107978ee2 (patch)
tree94eee7b497973c31c73514407084fefaf51515bd /.pre-commit-config.yaml
parent2d54e5cd9f86dcabd9f419f196245af4479abcd5 (diff)
downloadethos-u-vela-762d3acb93c597b5299864f9b3ee551107978ee2.tar.gz
MLBEDSW-7832: test_tflite_model_semantic converting array to scalar
- The problem is that the axis value can be either a scalar or an array containing a single element - The solution is to check the length of the shape because the size attribute returns the same value for both cases - This did not show up before because pytest warnings were not being treated as errors - Removed pre-commit pytest option that caused tests to be searched for from the root directory - Updated pyproject.toml pytest options to explicitly specify the test directories, and to treat warnings as errors Change-Id: I037054768e5c34f253b6062eadba1c3419ff65e4
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 4f60e96b..29f96d58 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -55,7 +55,7 @@ repos:
name: pytest
stages: [commit]
language: system
- entry: pytest -s -v .
+ entry: pytest -s -v
types: [python]
pass_filenames: false
always_run: true