Skip to content

Commit

Permalink
Update pylama
Browse files Browse the repository at this point in the history
  • Loading branch information
klen committed Sep 9, 2015
1 parent 16bcbc3 commit 94569bf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pymode/libs/pylama/__init__.py
Expand Up @@ -5,7 +5,7 @@
:license: BSD, see LICENSE for more details.
"""

__version__ = "7.0.4"
__version__ = "7.0.5"
__project__ = "pylama"
__author__ = "Kirill Klenov <horneds@gmail.com>"
__license__ = "GNU LGPL"
4 changes: 4 additions & 0 deletions pymode/libs/pylama/core.py
Expand Up @@ -34,6 +34,10 @@ def run(path='', code=None, rootdir=CURDIR, options=None):
if mask.match(path):
fileconfig.update(options.file_params[mask])

if options.skip and any(p.match(path) for p in options.skip):
LOGGER.info('Skip checking for path: %s', path)
return []

try:
with CodeContext(code, path) as ctx:
code = ctx.code
Expand Down
4 changes: 0 additions & 4 deletions pymode/libs/pylama/main.py
Expand Up @@ -41,10 +41,6 @@ def check_path(options, rootdir=None, candidates=None, code=None):
if not op.exists(path):
continue

if options.skip and any(p.match(path) for p in options.skip):
LOGGER.info('Skip path: %s', path)
continue

paths.append(path)

if options.async:
Expand Down

0 comments on commit 94569bf

Please sign in to comment.