Skip to content

Commit bac13b8

Browse files
committed
Add W503 to default ignore list
Closes #498
1 parent eae54ff commit bac13b8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/intro.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ This is the current list of error and warning codes:
392392
+------------+----------------------------------------------------------------------+
393393
| **W5** | *Line break warning* |
394394
+------------+----------------------------------------------------------------------+
395-
| W503 | line break occurred before a binary operator |
395+
| W503 (*) | line break occurred before a binary operator |
396396
+------------+----------------------------------------------------------------------+
397397
+------------+----------------------------------------------------------------------+
398398
| **W6** | *Deprecation warning* |

pep8.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
__version__ = '1.8.0-dev'
6666

6767
DEFAULT_EXCLUDE = '.svn,CVS,.bzr,.hg,.git,__pycache__,.tox'
68-
DEFAULT_IGNORE = 'E121,E123,E126,E226,E24,E704'
68+
DEFAULT_IGNORE = 'E121,E123,E126,E226,E24,E704,W503'
6969
try:
7070
if sys.platform == 'win32':
7171
USER_CONFIG = os.path.expanduser(r'~\.pep8')

testsuite/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def parse_argv(argstring):
181181
self.assertEqual(options.select, ())
182182
self.assertEqual(
183183
options.ignore,
184-
('E121', 'E123', 'E126', 'E226', 'E24', 'E704')
184+
('E121', 'E123', 'E126', 'E226', 'E24', 'E704', 'W503')
185185
)
186186

187187
options = parse_argv('--doctest').options

0 commit comments

Comments
 (0)