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: | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 293ba98..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 @@ -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: 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):