Enable pytest pre-commit

Change-Id: Ia00a9fa0d260c68ce8532dec9925467558fe7dea
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 1658ca9..f2ccc3f 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -18,3 +18,13 @@
     rev: 4.0.1
     hooks:
     -   id: flake8
+
+-   repo: local
+    hooks:
+    -   id: pytest
+        name: pytest
+        stages: [commit]
+        language: system
+        entry: pytest
+        types: [python]
+        pass_filenames: false