From f5d11b750ecc982541d1f936488248f0b42d75d3 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 16 Nov 2014 20:15:50 +0100 Subject: pep8 linting (whitespaces) W191 indentation contains tabs E221 multiple spaces before operator E222 multiple spaces after operator E225 missing whitespace around operator E271 multiple spaces after keyword W292 no newline at end of file W293 blank line contains whitespace W391 blank line at end of file --- git/test/test_actor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git/test/test_actor.py') diff --git a/git/test/test_actor.py b/git/test/test_actor.py index b8e5ba3b..06aa1aed 100644 --- a/git/test/test_actor.py +++ b/git/test/test_actor.py @@ -13,7 +13,7 @@ class TestActor(object): a = Actor._from_string("Michael Trier ") assert_equal("Michael Trier", a.name) assert_equal("mtrier@example.com", a.email) - + # base type capabilities assert a == a assert not ( a != a ) @@ -33,4 +33,4 @@ class TestActor(object): def test_str_should_alias_name(self): a = Actor._from_string("Michael Trier ") - assert_equal(a.name, str(a)) \ No newline at end of file + assert_equal(a.name, str(a)) -- cgit v1.2.3 From be34ec23c48d6d5d8fd2ef4491981f6fb4bab8e6 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 16 Nov 2014 20:51:04 +0100 Subject: pep8 linting (blank lines expectations) E301 expected 1 blank line, found 0 E302 expected 2 blank lines, found 1 E303 too many blank lines (n) --- git/test/test_actor.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'git/test/test_actor.py') diff --git a/git/test/test_actor.py b/git/test/test_actor.py index 06aa1aed..40e307ba 100644 --- a/git/test/test_actor.py +++ b/git/test/test_actor.py @@ -8,7 +8,9 @@ import os from git.test.lib import * from git import * + class TestActor(object): + def test_from_string_should_separate_name_and_email(self): a = Actor._from_string("Michael Trier ") assert_equal("Michael Trier", a.name) -- cgit v1.2.3 From 614907b7445e2ed8584c1c37df7e466e3b56170f Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 16 Nov 2014 20:56:53 +0100 Subject: pep8 linting (whitespace before/after) E201 whitespace after '(' E202 whitespace before ')' E203 whitespace before ':' E225 missing whitespace around operator E226 missing whitespace around arithmetic operator E227 missing whitespace around bitwise or shift operator E228 missing whitespace around modulo operator E231 missing whitespace after ',' E241 multiple spaces after ',' E251 unexpected spaces around keyword / parameter equals --- git/test/test_actor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/test/test_actor.py') diff --git a/git/test/test_actor.py b/git/test/test_actor.py index 40e307ba..5ccf1d2e 100644 --- a/git/test/test_actor.py +++ b/git/test/test_actor.py @@ -18,7 +18,7 @@ class TestActor(object): # base type capabilities assert a == a - assert not ( a != a ) + assert not (a != a) m = set() m.add(a) m.add(a) -- cgit v1.2.3