diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-03-03 22:15:00 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-03-03 22:15:00 +0000 |
| commit | 49dc90366c0e596d2f3bf0d98e7eb723ab1f166c (patch) | |
| tree | cb2cf9e02eb26a8731f09603af14187f639ff4f3 /docutils/test/test_settings.py | |
| parent | f4062567a7d2c40e2aa0a799574c919c9ebb1eac (diff) | |
| download | docutils-49dc90366c0e596d2f3bf0d98e7eb723ab1f166c.tar.gz | |
Fix whitespace before/after delimiters and colon.
Flake rules
E201 whitespace after '('
E202 whitespace before '}'
E203 whitespace before ':'
E211 whitespace before '('
Exception: : as binary operator in extended slices
(cf. https://www.python.org/dev/peps/pep-0008/#pet-peeves).
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9015 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/test_settings.py')
| -rwxr-xr-x | docutils/test/test_settings.py | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/docutils/test/test_settings.py b/docutils/test/test_settings.py index ac6fcd52f..cdfbc1cb1 100755 --- a/docutils/test/test_settings.py +++ b/docutils/test/test_settings.py @@ -272,15 +272,15 @@ class HelperFunctionsTests(unittest.TestCase): self.assertEqual(pathdict['spam'], 'spam') boolean_settings = ( - (True, True ), - ('1', True ), - ('on', True ), - ('yes', True ), - ('true', True ), - ('0', False ), - ('off', False ), - ('no', False ), - ('false', False ), + (True, True), + ('1', True), + ('on', True), + ('yes', True), + ('true', True), + ('0', False), + ('off', False), + ('no', False), + ('false', False), ) def test_validate_boolean(self): for t in self.boolean_settings: @@ -300,10 +300,10 @@ class HelperFunctionsTests(unittest.TestCase): def test_validate_colon_separated_string_list(self): tests = ( - ('a', ['a',] ), - ('a:b', ['a', 'b'] ), - (['a',], ['a',] ), - (['a', 'b:c'], ['a', 'b', 'c'] ), + ('a', ['a',]), + ('a:b', ['a', 'b']), + (['a',], ['a',]), + (['a', 'b:c'], ['a', 'b', 'c']), ) for t in tests: self.assertEqual( @@ -312,10 +312,10 @@ class HelperFunctionsTests(unittest.TestCase): def test_validate_comma_separated_list(self): tests = ( - ('a', ['a',] ), - ('a,b', ['a', 'b'] ), - (['a',], ['a',] ), - (['a', 'b,c'], ['a', 'b', 'c'] ), + ('a', ['a',]), + ('a,b', ['a', 'b']), + (['a',], ['a',]), + (['a', 'b,c'], ['a', 'b', 'c']), ) for t in tests: self.assertEqual( @@ -324,10 +324,10 @@ class HelperFunctionsTests(unittest.TestCase): def test_validate_url_trailing_slash(self): tests = ( - ('', './' ), - (None, './' ), - ('http://example.org', 'http://example.org/' ), - ('http://example.org/', 'http://example.org/' ), + ('', './'), + (None, './'), + ('http://example.org', 'http://example.org/'), + ('http://example.org/', 'http://example.org/'), ) for t in tests: self.assertEqual( |
