summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Tim <andras.tim@gmail.com>2017-07-17 01:25:08 +0200
committerAndras Tim <andras.tim@gmail.com>2017-07-17 01:28:17 +0200
commit1ff54ba205925521faf12a9d1838c8893be5dcf0 (patch)
treec75683fc8b6ad2674ff25a02893574ab4910b56f
parentdf54bf0db524a9c8e5b6c2847c56d1589f533087 (diff)
downloadpytest-1ff54ba205925521faf12a9d1838c8893be5dcf0.tar.gz
Fixed E201 flake8 errors
whitespace after ‘(‘
-rw-r--r--_pytest/_code/source.py2
-rw-r--r--testing/python/approx.py2
-rw-r--r--testing/python/metafunc.py2
-rw-r--r--testing/test_argcomplete.py4
-rw-r--r--tox.ini2
5 files changed, 6 insertions, 6 deletions
diff --git a/_pytest/_code/source.py b/_pytest/_code/source.py
index 37c1b5fa9..5c29dac46 100644
--- a/_pytest/_code/source.py
+++ b/_pytest/_code/source.py
@@ -86,7 +86,7 @@ class Source(object):
before = Source(before)
after = Source(after)
newsource = Source()
- lines = [ (indent + line) for line in self.lines]
+ lines = [(indent + line) for line in self.lines]
newsource.lines = before.lines + lines + after.lines
return newsource
diff --git a/testing/python/approx.py b/testing/python/approx.py
index 97669b076..853f2fe02 100644
--- a/testing/python/approx.py
+++ b/testing/python/approx.py
@@ -243,7 +243,7 @@ class TestApprox(object):
def test_complex(self):
within_1e6 = [
- ( 1.000001 + 1.0j, 1.0 + 1.0j),
+ (1.000001 + 1.0j, 1.0 + 1.0j),
(1.0 + 1.000001j, 1.0 + 1.0j),
(-1.000001 + 1.0j, -1.0 + 1.0j),
(1.0 - 1.000001j, 1.0 - 1.0j),
diff --git a/testing/python/metafunc.py b/testing/python/metafunc.py
index 5d0cf39f1..8718f6d52 100644
--- a/testing/python/metafunc.py
+++ b/testing/python/metafunc.py
@@ -141,7 +141,7 @@ class TestMetafunc(object):
@pytest.mark.issue510
def test_parametrize_empty_list(self):
- def func( y): pass
+ def func(y): pass
metafunc = self.Metafunc(func)
metafunc.parametrize("y", [])
assert 'skip' in metafunc._calls[0].keywords
diff --git a/testing/test_argcomplete.py b/testing/test_argcomplete.py
index 61ebbcafe..32705e130 100644
--- a/testing/test_argcomplete.py
+++ b/testing/test_argcomplete.py
@@ -52,7 +52,7 @@ class FilesCompleter(object):
if self.directories:
files = _wrapcall(['bash','-c',
"compgen -A directory -- '{p}'".format(p=prefix)])
- completion += [ f + '/' for f in files]
+ completion += [f + '/' for f in files]
for x in self.allowednames:
completion += _wrapcall(['bash', '-c',
"compgen -A file -X '!*.{0}' -- '{p}'".format(x,p=prefix)])
@@ -63,7 +63,7 @@ class FilesCompleter(object):
anticomp = _wrapcall(['bash', '-c',
"compgen -A directory -- '{p}'".format(p=prefix)])
- completion = list( set(completion) - set(anticomp))
+ completion = list(set(completion) - set(anticomp))
if self.directories:
completion += [f + '/' for f in anticomp]
diff --git a/tox.ini b/tox.ini
index 66c52f3b1..3e74833b0 100644
--- a/tox.ini
+++ b/tox.ini
@@ -196,6 +196,6 @@ filterwarnings =
ignore:.*inspect.getargspec.*deprecated, use inspect.signature.*:DeprecationWarning
[flake8]
-ignore = E201,E202,E203,E221,E222,E225,E226,E231,E241,E251,E261,E262,E265,E271,E272,E293,E301,E302,E303,E401,E402,E501,E701,E702,E704,E712,E731
+ignore = E202,E203,E221,E222,E225,E226,E231,E241,E251,E261,E262,E265,E271,E272,E293,E301,E302,E303,E401,E402,E501,E701,E702,E704,E712,E731
max-line-length = 120
exclude = _pytest/vendored_packages/pluggy.py