Skip to content

Commit 75d5f3b

Browse files
authored
Merge pull request #1035 from Nothing4You/flake8
Bump flake8 to 7.3.0
2 parents e167783 + 7787b81 commit 75d5f3b

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ jobs:
337337
- name: flake8 Lint
338338
uses: py-actions/flake8@84ec6726560b6d5bd68f2a5bed83d62b52bb50ba # v2.3.0
339339
with:
340-
flake8-version: 5.0.4
340+
flake8-version: 7.3.0
341341
path: aiomysql
342342
args: tests examples
343343

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
coverage==7.10.6
22
# flake8 version is also specified in .github/workflows/ci-cd.yml
3-
flake8==5.0.4
3+
flake8==7.3.0
44
ipdb==0.13.13
55
pytest==8.4.2
66
pytest-cov==7.0.0

tests/sa/test_sa_default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ async def test_default_fields(make_engine):
7878
assert row.number == 100
7979
assert row.description == 'default test'
8080
assert row.enabled is True
81-
assert type(row.created_at) == datetime.datetime
81+
assert isinstance(row.created_at, datetime.datetime)
8282

8383

8484
@pytest.mark.run_loop

tests/test_dictcursor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,5 @@ async def test_ssdictcursor(connection):
103103
c = await conn.cursor(aiomysql.cursors.SSDictCursor)
104104
await c.execute("SELECT * from dictcursor where name='bob'")
105105
r = await c.fetchall()
106-
assert [BOB] == r,\
106+
assert [BOB] == r, \
107107
"fetch a 1 row result via fetchall failed via DictCursor"

0 commit comments

Comments
 (0)