From 51ac3a056c6609fd18bc04461ec86b0da759028f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane?= Date: Fri, 20 Jan 2023 11:29:14 +0100 Subject: [PATCH 1/2] Update integration.rst fix the sample code --- doc/source/integration.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/integration.rst b/doc/source/integration.rst index ac55e4c..46f3500 100644 --- a/doc/source/integration.rst +++ b/doc/source/integration.rst @@ -29,7 +29,7 @@ Instead of: if pypim.is_configured(): pim = pypim.connect() - instance = pypim.create_instance(product_name="mapdl") + instance = pim.create_instance(product_name="mapdl") channel = instance.build_grpc_channel( options=[("grpc.max_receive_message_length", 8 * 1024**2)] ) @@ -105,7 +105,7 @@ Typically, the resulting code looks like this: def launch_my_product(self, ...): if pypim.is_configured() and not user_has_specified_how_to_launch_the_product: pim = pypim.connect() - self.instance = pypim.create_instance("my_product_name") + self.instance = pim.create_instance("my_product_name") self.instance.wait_for_ready() channel = self.instance.build_grpc_channel() else: From 9fe7b9bed9b6a48e761458f6e425d13795428a8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane?= Date: Fri, 20 Jan 2023 16:44:12 +0100 Subject: [PATCH 2/2] Fix and update pre-commits (#75) (#76) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix and update pre-commits Co-authored-by: Pierre Lulé --- .pre-commit-config.yaml | 2 +- requirements/requirements_tests.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 65c9cd1..c289ff2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: hooks: - id: isort -- repo: https://gitlab.com/PyCQA/flake8 +- repo: https://github.com/PyCQA/flake8 rev: 4.0.1 hooks: - id: flake8 diff --git a/requirements/requirements_tests.txt b/requirements/requirements_tests.txt index f6de369..a250aaf 100644 --- a/requirements/requirements_tests.txt +++ b/requirements/requirements_tests.txt @@ -3,3 +3,4 @@ pytest-cov>=3.0.0 ansys-api-platform-instancemanagement>=1.0.0b1 grpcio-testing grpcio-health-checking +six~=1.16 \ No newline at end of file