From 11a4f147ae13a7162bba715617a19c7c4163a654 Mon Sep 17 00:00:00 2001 From: Petro Tiurin <93913847+ptiurin@users.noreply.github.com> Date: Thu, 23 Feb 2023 16:36:58 +0100 Subject: [PATCH 1/4] ci: Fix pre-commit --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 293ba98..1bc199d 100755 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,7 +39,7 @@ repos: - id: black_nbconvert - repo: https://github.com/PyCQA/flake8 - rev: 3.7.9 + rev: "4.0.1" hooks: - id: flake8 additional_dependencies: From 26fecf6b386ca2f6ef715180edd2968001b0dc89 Mon Sep 17 00:00:00 2001 From: Petro Tiurin <93913847+ptiurin@users.noreply.github.com> Date: Thu, 23 Feb 2023 16:40:42 +0100 Subject: [PATCH 2/4] Update code-check.yml --- .github/workflows/code-check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code-check.yml b/.github/workflows/code-check.yml index f39034b..a72db28 100644 --- a/.github/workflows/code-check.yml +++ b/.github/workflows/code-check.yml @@ -12,10 +12,10 @@ jobs: - name: Check out code uses: actions/checkout@v2 - - name: Set up Python 3.7 + - name: Set up Python 3.8 uses: actions/setup-python@v2 with: - python-version: 3.7 + python-version: 3.8 - name: Install dependencies run: | From 6d95f4a0f609ef76e8da0c8d1f232af4252d0fad Mon Sep 17 00:00:00 2001 From: Petro Tiurin <93913847+ptiurin@users.noreply.github.com> Date: Thu, 23 Feb 2023 16:45:57 +0100 Subject: [PATCH 3/4] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1bc199d..bf0ddea 100755 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: - --remove-unused-variables - repo: https://github.com/PyCQA/isort - rev: 5.9.3 + rev: "5.12.0" hooks: - id: isort From 3412405246f389922a6362153d020732d6a62375 Mon Sep 17 00:00:00 2001 From: ptiurin Date: Thu, 23 Feb 2023 16:51:51 +0100 Subject: [PATCH 4/4] fstring fix --- tests/integration/test_sqlalchemy_async_integration.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/integration/test_sqlalchemy_async_integration.py b/tests/integration/test_sqlalchemy_async_integration.py index e81dfbb..2703b94 100644 --- a/tests/integration/test_sqlalchemy_async_integration.py +++ b/tests/integration/test_sqlalchemy_async_integration.py @@ -52,14 +52,14 @@ async def test_data_write(self, async_connection: Connection, fact_table_name: s @pytest.mark.asyncio async def test_set_params(self, async_connection: Engine): - await async_connection.execute(text(f"SET advanced_mode=1")) - await async_connection.execute(text(f"SET use_standard_sql=0")) + await async_connection.execute(text("SET advanced_mode=1")) + await async_connection.execute(text("SET use_standard_sql=0")) result = await async_connection.execute( - text(f"SELECT sleepEachRow(1) from numbers(1)") + text("SELECT sleepEachRow(1) from numbers(1)") ) assert len(result.fetchall()) == 1 - await async_connection.execute(text(f"SET use_standard_sql=1")) - await async_connection.execute(text(f"SET advanced_mode=0")) + await async_connection.execute(text("SET use_standard_sql=1")) + await async_connection.execute(text("SET advanced_mode=0")) @pytest.mark.asyncio async def test_get_table_names(self, async_connection: Connection):