Skip to content

Commit 94569bf

Browse files
committed
Update pylama
1 parent 16bcbc3 commit 94569bf

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pymode/libs/pylama/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
:license: BSD, see LICENSE for more details.
66
"""
77

8-
__version__ = "7.0.4"
8+
__version__ = "7.0.5"
99
__project__ = "pylama"
1010
__author__ = "Kirill Klenov <[email protected]>"
1111
__license__ = "GNU LGPL"

pymode/libs/pylama/core.py

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ def run(path='', code=None, rootdir=CURDIR, options=None):
3434
if mask.match(path):
3535
fileconfig.update(options.file_params[mask])
3636

37+
if options.skip and any(p.match(path) for p in options.skip):
38+
LOGGER.info('Skip checking for path: %s', path)
39+
return []
40+
3741
try:
3842
with CodeContext(code, path) as ctx:
3943
code = ctx.code

pymode/libs/pylama/main.py

-4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ def check_path(options, rootdir=None, candidates=None, code=None):
4141
if not op.exists(path):
4242
continue
4343

44-
if options.skip and any(p.match(path) for p in options.skip):
45-
LOGGER.info('Skip path: %s', path)
46-
continue
47-
4844
paths.append(path)
4945

5046
if options.async:

0 commit comments

Comments
 (0)