From b5f48729db63b09d70cad05e119026939fde4e9f Mon Sep 17 00:00:00 2001 From: Yoofi Quansah Date: Mon, 4 Dec 2023 13:13:50 -0600 Subject: [PATCH] chore: fix linting --- flipt-client-node/src/evaluation.test.ts | 4 +++- flipt-client-python/flipt_client_python/__init__.py | 8 ++++++-- flipt-client-python/tests/__init__.py | 4 +++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/flipt-client-node/src/evaluation.test.ts b/flipt-client-node/src/evaluation.test.ts index 8f3fdd66..500df633 100644 --- a/flipt-client-node/src/evaluation.test.ts +++ b/flipt-client-node/src/evaluation.test.ts @@ -24,7 +24,9 @@ test('variant', () => { test('boolean', () => { const fec = new FliptEvaluationClient('default', { url: fliptUrl }); - const boolean = fec.evaluateBoolean('flag_boolean', 'someentity', { fizz: 'buzz' }); + const boolean = fec.evaluateBoolean('flag_boolean', 'someentity', { + fizz: 'buzz' + }); expect(boolean.error_message).toBeNull(); expect(boolean.status).toEqual('success'); diff --git a/flipt-client-python/flipt_client_python/__init__.py b/flipt-client-python/flipt_client_python/__init__.py index 8e8f89be..d3cc38eb 100644 --- a/flipt-client-python/flipt_client_python/__init__.py +++ b/flipt-client-python/flipt_client_python/__init__.py @@ -42,7 +42,9 @@ def __del__(self): if hasattr(self, "engine") and self.engine is not None: self.ffi_core.destroy_engine(self.engine) - def evaluate_variant(self, flag_key: str, entity_id: str, context: dict) -> VariantResult: + def evaluate_variant( + self, flag_key: str, entity_id: str, context: dict + ) -> VariantResult: response = self.ffi_core.evaluate_variant( self.engine, serialize_evaluation_request( @@ -56,7 +58,9 @@ def evaluate_variant(self, flag_key: str, entity_id: str, context: dict) -> Vari return variant_result - def evaluate_boolean(self, flag_key: str, entity_id: str, context: dict) -> BooleanResult: + def evaluate_boolean( + self, flag_key: str, entity_id: str, context: dict + ) -> BooleanResult: response = self.ffi_core.evaluate_boolean( self.engine, serialize_evaluation_request( diff --git a/flipt-client-python/tests/__init__.py b/flipt-client-python/tests/__init__.py index 9bfc8120..996c3218 100644 --- a/flipt-client-python/tests/__init__.py +++ b/flipt-client-python/tests/__init__.py @@ -15,7 +15,9 @@ def setUp(self) -> None: ) def test_variant(self): - variant = self.flipt_client.evaluate_variant("flag1", "someentity", {"fizz": "buzz"}) + variant = self.flipt_client.evaluate_variant( + "flag1", "someentity", {"fizz": "buzz"} + ) self.assertIsNone(variant.error_message) self.assertEqual("success", variant.status) self.assertEqual("flag1", variant.result.flag_key)