From 181bdeb0b0f504e5d5ac5b9a09387d9ad5e33da2 Mon Sep 17 00:00:00 2001 From: Alejandro Saucedo Date: Sat, 2 Nov 2019 16:29:54 +0000 Subject: [PATCH 1/2] Updated precommit hook to align to the lint checker --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9bb6f82361..446db62f7e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,4 +9,5 @@ repos: rev: stable hooks: - id: black + args: ['python/', 'testing/', '--exclude', '(testing/scripts/proto|seldon_core/proto/|.eggs)'] language_version: python3.6 From 9b2dd9f3bfdfbcc21c4fc0fb7b49fa29e3219c0c Mon Sep 17 00:00:00 2001 From: Alejandro Saucedo Date: Sat, 2 Nov 2019 16:42:15 +0000 Subject: [PATCH 2/2] Added file which slipped on last commit for lint --- python/seldon_core/utils.py | 6 +++--- python/seldon_core/version.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/seldon_core/utils.py b/python/seldon_core/utils.py index f51fcdb674..53f260b3a2 100644 --- a/python/seldon_core/utils.py +++ b/python/seldon_core/utils.py @@ -131,7 +131,7 @@ def feedback_to_json(message_proto: prediction_pb2.Feedback) -> Dict: def get_data_from_proto( - request: prediction_pb2.SeldonMessage + request: prediction_pb2.SeldonMessage, ) -> Union[np.ndarray, str, bytes, dict]: """ Extract the data payload from the SeldonMessage @@ -556,7 +556,7 @@ def extract_request_parts_json( def extract_request_parts( - request: prediction_pb2.SeldonMessage + request: prediction_pb2.SeldonMessage, ) -> Tuple[Union[np.ndarray, str, bytes, dict], Dict, prediction_pb2.DefaultData, str]: """ @@ -578,7 +578,7 @@ def extract_request_parts( def extract_feedback_request_parts( - request: prediction_pb2.Feedback + request: prediction_pb2.Feedback, ) -> Tuple[prediction_pb2.DefaultData, np.ndarray, np.ndarray, float]: """ Extract key parts of the Feedback Message diff --git a/python/seldon_core/version.py b/python/seldon_core/version.py index b4b2711e9c..1ca9536670 100644 --- a/python/seldon_core/version.py +++ b/python/seldon_core/version.py @@ -1 +1 @@ -__version__ = '0.5.0.2' +__version__ = "0.5.0.2"