8000
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 c27e9c5 commit 26f96fdCopy full SHA for 26f96fd
pymode/lint.py
@@ -20,7 +20,8 @@ def code_check():
20
"""
21
with silence_stderr():
22
23
- from pylama.main import parse_options, check_path
+ from pylama.core import run
24
+ from pylama.main import parse_options
25
26
if not env.curbuf.name:
27
return env.stop()
@@ -54,9 +55,7 @@ def code_check():
54
55
from pylama.core import LOGGER, logging
56
LOGGER.setLevel(logging.DEBUG)
57
- options.paths = [path]
58
- errors = check_path(
59
- options=options, code='\n'.join(env.curbuf) + '\n', rootdir=env.curdir)
+ errors = run(path, code='\n'.join(env.curbuf) + '\n', options=options)
60
61
env.debug("Find errors: ", len(errors))
62
sort_rules = env.var('g:pymode_lint_sort')
0 commit comments