Skip to content

Commit

Permalink
fix/hush some flake8 warnings
Browse files Browse the repository at this point in the history
test_ipaddrs.py had an invalid regexp, caught by the latest version of flake8

The new flake8 complains about both W503 (line break inside a conditional
before a binary operator) and W504 (line break *after* the operator). I think
break-before is the new preferred style, but for now I'm just going to ignore
them both and leave the code alone.
  • Loading branch information
warner committed Nov 13, 2018
1 parent 74da87b commit 4e97bb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/wormhole/test/test_ipaddrs.py
Expand Up @@ -7,7 +7,7 @@

from .. import ipaddrs

DOTTED_QUAD_RE = re.compile("^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$")
DOTTED_QUAD_RE = re.compile(r"^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$")

MOCK_IPADDR_OUTPUT = """\
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN \n\
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -42,6 +42,6 @@ deps = flake8
commands = flake8 src/wormhole

[flake8]
ignore = E741
ignore = E741,W503,W504
exclude = .git,__pycache__,docs/source/conf.py,old,build,dist
max-complexity = 40

0 comments on commit 4e97bb0

Please sign in to comment.