Skip to content

Commit

Permalink
Fix and pin flake8.
Browse files Browse the repository at this point in the history
  • Loading branch information
wRAR committed Oct 5, 2023
1 parent 5052351 commit 608f1df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions tests/test_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,15 +227,15 @@
# domain name labels (63 characters) and the domain name as a whole (253
# characters). However, all cases are expected to pass because the URL
# living standard does not require domain names to be within these limits.
(f"https://{'a'*63}.example", f"https://{'a'*63}.example"),
(f"https://{'a'*64}.example", f"https://{'a'*64}.example"),
(f"https://{'a' * 63}.example", f"https://{'a' * 63}.example"),
(f"https://{'a' * 64}.example", f"https://{'a' * 64}.example"),
(
f"https://{'a'*63}.{'a'*63}.{'a'*63}.{'a'*53}.example",
f"https://{'a'*63}.{'a'*63}.{'a'*63}.{'a'*53}.example",
f"https://{'a' * 63}.{'a' * 63}.{'a' * 63}.{'a' * 53}.example",
f"https://{'a' * 63}.{'a' * 63}.{'a' * 63}.{'a' * 53}.example",
),
(
f"https://{'a'*63}.{'a'*63}.{'a'*63}.{'a'*54}.example",
f"https://{'a'*63}.{'a'*63}.{'a'*63}.{'a'*54}.example",
f"https://{'a' * 63}.{'a' * 63}.{'a' * 63}.{'a' * 54}.example",
f"https://{'a' * 63}.{'a' * 63}.{'a' * 63}.{'a' * 54}.example",
),
("https://ñ.example", "https://xn--ida.example"),
("http://192.168.0.0", "http://192.168.0.0"),
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ commands =
[testenv:flake8]
basepython = python3
deps =
flake8
flake8==6.1.0
commands =
flake8 \
{posargs:w3lib tests setup.py}
Expand Down

0 comments on commit 608f1df

Please sign in to comment.