Skip to content

Commit e8172ee

Browse files
authored
ci: Fix pre-commit (#72)
1 parent 4a20689 commit e8172ee

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/code-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
- name: Check out code
1313
uses: actions/checkout@v2
1414

15-
- name: Set up Python 3.7
15+
- name: Set up Python 3.8
1616
uses: actions/setup-python@v2
1717
with:
18-
python-version: 3.7
18+
python-version: 3.8
1919

2020
- name: Install dependencies
2121
run: |

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repos:
2323
- --remove-unused-variables
2424

2525
- repo: https://github.com/PyCQA/isort
26-
rev: 5.9.3
26+
rev: "5.12.0"
2727
hooks:
2828
- id: isort
2929

@@ -39,7 +39,7 @@ repos:
3939
- id: black_nbconvert
4040

4141
- repo: https://github.com/PyCQA/flake8
42-
rev: 3.7.9
42+
rev: "4.0.1"
4343
hooks:
4444
- id: flake8
4545
additional_dependencies:

tests/integration/test_sqlalchemy_async_integration.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ async def test_data_write(self, async_connection: Connection, fact_table_name: s
5252

5353
@pytest.mark.asyncio
5454
async def test_set_params(self, async_connection: Engine):
55-
await async_connection.execute(text(f"SET advanced_mode=1"))
56-
await async_connection.execute(text(f"SET use_standard_sql=0"))
55+
await async_connection.execute(text("SET advanced_mode=1"))
56+
await async_connection.execute(text("SET use_standard_sql=0"))
5757
result = await async_connection.execute(
58-
text(f"SELECT sleepEachRow(1) from numbers(1)")
58+
text("SELECT sleepEachRow(1) from numbers(1)")
5959
)
6060
assert len(result.fetchall()) == 1
61-
await async_connection.execute(text(f"SET use_standard_sql=1"))
62-
await async_connection.execute(text(f"SET advanced_mode=0"))
61+
await async_connection.execute(text("SET use_standard_sql=1"))
62+
await async_connection.execute(text("SET advanced_mode=0"))
6363

6464
@pytest.mark.asyncio
6565
async def test_get_table_names(self, async_connection: Connection):

0 commit comments

Comments
 (0)