You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by bo...@apache.org on 2023/02/03 07:32:04 UTC

[streampipes] branch dev updated: Bump black from 22.12.0 to 23.1.0 in /streampipes-client-python (#1201)

This is an automated email from the ASF dual-hosted git repository.

bossenti pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new 4f4385444 Bump black from 22.12.0 to 23.1.0 in /streampipes-client-python (#1201)
4f4385444 is described below

commit 4f43854446641ac7af9e48ee96ae994f2de7e320
Author: dependabot[bot] <49...@users.noreply.github.com>
AuthorDate: Fri Feb 3 08:31:58 2023 +0100

    Bump black from 22.12.0 to 23.1.0 in /streampipes-client-python (#1201)
    
    * Bump black from 22.12.0 to 23.1.0 in /streampipes-client-python
    
    Bumps [black](https://github.com/psf/black) from 22.12.0 to 23.1.0.
    - [Release notes](https://github.com/psf/black/releases)
    - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
    - [Commits](https://github.com/psf/black/compare/22.12.0...23.1.0)
    
    ---
    updated-dependencies:
    - dependency-name: black
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <su...@github.com>
    
    * chore(formatting): align formatting to black v23
    
    Signed-off-by: bossenti <bo...@posteo.de>
    
    ---------
    
    Signed-off-by: dependabot[bot] <su...@github.com>
    Signed-off-by: bossenti <bo...@posteo.de>
    Co-authored-by: dependabot[bot] <49...@users.noreply.github.com>
    Co-authored-by: bossenti <bo...@posteo.de>
---
 streampipes-client-python/setup.py                                 | 2 +-
 streampipes-client-python/streampipes_client/endpoint/endpoint.py  | 1 -
 streampipes-client-python/tests/client/test_credential_provider.py | 2 --
 streampipes-client-python/tests/client/test_endpoint.py            | 2 --
 4 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/streampipes-client-python/setup.py b/streampipes-client-python/setup.py
index f4c7ac96d..e89c0f136 100644
--- a/streampipes-client-python/setup.py
+++ b/streampipes-client-python/setup.py
@@ -39,7 +39,7 @@ base_packages = [
 
 dev_packages = base_packages + [
     "autoflake==2.0.0",
-    "black==22.12.0",
+    "black==23.1.0",
     "blacken-docs==1.13.0",
     "flake8==6.0.0",
     "interrogate==1.5.0",
diff --git a/streampipes-client-python/streampipes_client/endpoint/endpoint.py b/streampipes-client-python/streampipes_client/endpoint/endpoint.py
index 3bb7f4cbb..dcea73af5 100644
--- a/streampipes-client-python/streampipes_client/endpoint/endpoint.py
+++ b/streampipes-client-python/streampipes_client/endpoint/endpoint.py
@@ -150,7 +150,6 @@ class APIEndpoint(Endpoint):
         try:
             response.raise_for_status()
         except HTTPError as err:
-
             status_code = err.response.status_code
 
             # get custom error message based on the returned status code
diff --git a/streampipes-client-python/tests/client/test_credential_provider.py b/streampipes-client-python/tests/client/test_credential_provider.py
index 5490ded3f..3660fdfde 100644
--- a/streampipes-client-python/tests/client/test_credential_provider.py
+++ b/streampipes-client-python/tests/client/test_credential_provider.py
@@ -35,7 +35,6 @@ class TestStreamPipesApiKeyCredentials(TestCase):
         self.assertDictEqual(expected_extended, result_extended)
 
     def test_api_key_from_env(self):
-
         os.environ["USER"] = "user"
         os.environ["KEY"] = "api-key"
         credentials = StreamPipesApiKeyCredentials.from_env(username_env="USER", api_key_env="KEY")
@@ -44,6 +43,5 @@ class TestStreamPipesApiKeyCredentials(TestCase):
         self.assertEqual("api-key", credentials.api_key)
 
     def test_api_key_from_env_not_set(self):
-
         with self.assertRaises(KeyError):
             StreamPipesApiKeyCredentials.from_env(username_env="test", api_key_env="key")
diff --git a/streampipes-client-python/tests/client/test_endpoint.py b/streampipes-client-python/tests/client/test_endpoint.py
index cdb68fb8e..d75946da1 100644
--- a/streampipes-client-python/tests/client/test_endpoint.py
+++ b/streampipes-client-python/tests/client/test_endpoint.py
@@ -396,7 +396,6 @@ class TestStreamPipesEndpoints(TestCase):
 
 
 class TestMessagingEndpoint(TestCase):
-
     client = StreamPipesClient(
         client_config=StreamPipesClientConfig(
             credential_provider=StreamPipesApiKeyCredentials(username="user", api_key="key"),
@@ -405,7 +404,6 @@ class TestMessagingEndpoint(TestCase):
     )
 
     def test_messaging_endpoint_happy_path(self):
-
         demo_endpoint = MessagingEndpoint(parent_client=self.client)
 
         demo_endpoint.configure(broker=NatsBroker())