We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c57bf89 commit a72704fCopy full SHA for a72704f
pyls/plugins/flake8_lint.py
@@ -7,6 +7,7 @@
7
from pyls import hookimpl, lsp
8
9
log = logging.getLogger(__name__)
10
+FIX_IGNORES_RE = re.compile(r'([^a-zA-Z0-9_,]*;.*(\W+||$))')
11
12
13
@hookimpl
@@ -48,6 +49,9 @@ def run_flake8(args):
48
49
"""Run flake8 with the provided arguments, logs errors
50
from stderr if any.
51
"""
52
+ # a quick temporary fix to deal with Atom
53
+ args = [(i if not i.startswith('--ignore=') else FIX_IGNORES_RE.sub('', i))
54
+ for i in args if i is not None]
55
log.debug("Calling flake8 with args: '%s'", args)
56
try:
57
cmd = ['flake8']
0 commit comments