From 4e97bb041a92ea99651f9ea29e9048f66dd89e84 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 13 Nov 2018 10:21:41 -0800 Subject: [PATCH] fix/hush some flake8 warnings 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. --- src/wormhole/test/test_ipaddrs.py | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wormhole/test/test_ipaddrs.py b/src/wormhole/test/test_ipaddrs.py index 9e2cec5..7534fe0 100644 --- a/src/wormhole/test/test_ipaddrs.py +++ b/src/wormhole/test/test_ipaddrs.py @@ -7,7 +7,7 @@ from twisted.trial import unittest 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: mtu 16436 qdisc noqueue state UNKNOWN \n\ diff --git a/tox.ini b/tox.ini index f8ac1b6..4d7a007 100644 --- a/tox.ini +++ b/tox.ini @@ -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