diff -r 26e4a082ba54 -r 174dae2b91c3 Plugins/CheckerPlugins/CodeStyleChecker/pycodestyle.py --- a/Plugins/CheckerPlugins/CodeStyleChecker/pycodestyle.py Fri Nov 04 22:07:05 2016 +0100 +++ b/Plugins/CheckerPlugins/CodeStyleChecker/pycodestyle.py Sun Nov 06 13:31:38 2016 +0100 @@ -79,7 +79,7 @@ except ImportError: from ConfigParser import RawConfigParser # __IGNORE_WARNING__ -__version__ = '2.1.0' +__version__ = '2.1.0-eric' DEFAULT_EXCLUDE = '.svn,CVS,.bzr,.hg,.git,__pycache__,.tox' DEFAULT_IGNORE = 'E121,E123,E126,E226,E24,E704,W503' @@ -284,7 +284,7 @@ yield 0, "E304 blank lines found after function decorator" elif blank_lines > 2 or (indent_level and blank_lines == 2): yield 0, "E303 too many blank lines (%d)", blank_lines - elif logical_line.startswith(('def ', 'async def', 'class ', '@')): + elif logical_line.startswith(('def ', 'async def ', 'class ', '@')): if indent_level: if not (blank_before or previous_indent_level < indent_level or DOCSTRING_REGEX.match(previous_logical)): @@ -991,6 +991,7 @@ E702: do_one(); do_two(); do_three() E703: do_four(); # useless semicolon E704: def f(x): return 2*x + E705: async def f(x): return 2*x E731: f = lambda x: 2*x """ line = logical_line @@ -1012,6 +1013,8 @@ break if line.startswith('def '): yield 0, "E704 multiple statements on one line (def)" + elif line.startswith('async def '): + yield 0, "E705 multiple statements on one line (async def)" else: yield found, "E701 multiple statements on one line (colon)" prev_found = found