Merge pull request #4671 from radarhere/lint

Updated flake8 to 3.8.2
This commit is contained in:
Hugo van Kemenade 2020-06-06 12:58:52 +03:00 committed by GitHub
commit 9df95e77c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 75 additions and 75 deletions

View File

@ -9,7 +9,7 @@ repos:
types: [] types: []
- repo: https://gitlab.com/pycqa/flake8 - repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9 rev: 3.8.2
hooks: hooks:
- id: flake8 - id: flake8
additional_dependencies: [flake8-2020, flake8-implicit-str-concat] additional_dependencies: [flake8-2020, flake8-implicit-str-concat]

View File

@ -68,8 +68,8 @@ def test_textsize(request, tmp_path):
(dx, dy) = font.getsize(chr(i)) (dx, dy) = font.getsize(chr(i))
assert dy == 20 assert dy == 20
assert dx in (0, 10) assert dx in (0, 10)
for l in range(len(message)): for i in range(len(message)):
msg = message[: l + 1] msg = message[: i + 1]
assert font.getsize(msg) == (len(msg) * 10, 20) assert font.getsize(msg) == (len(msg) * 10, 20)

View File

@ -103,8 +103,8 @@ def _test_textsize(request, tmp_path, encoding):
assert dy == 20 assert dy == 20
assert dx in (0, 10) assert dx in (0, 10)
message = charsets[encoding]["message"].encode(encoding) message = charsets[encoding]["message"].encode(encoding)
for l in range(len(message)): for i in range(len(message)):
msg = message[: l + 1] msg = message[: i + 1]
assert font.getsize(msg) == (len(msg) * 10, 20) assert font.getsize(msg) == (len(msg) * 10, 20)