Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
klen committed Sep 8, 2015
2 parents 78c3b5c + 06a685f commit c1b13fe
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
@@ -1,6 +1,6 @@
[bumpversion]
commit = True
current_version = 7.0.3
current_version = 7.0.4
files = pylama/__init__.py
tag = True
tag_name = {new_version}
Expand Down
2 changes: 1 addition & 1 deletion pylama/__init__.py
Expand Up @@ -5,7 +5,7 @@
:license: BSD, see LICENSE for more details.
"""

__version__ = "7.0.3"
__version__ = "7.0.4"
__project__ = "pylama"
__author__ = "Kirill Klenov <horneds@gmail.com>"
__license__ = "GNU LGPL"
8 changes: 4 additions & 4 deletions pylama/core.py
Expand Up @@ -21,10 +21,11 @@ def run(path='', code=None, rootdir=CURDIR, options=None):
"""
errors = []
fileconfig = dict()
lname = 'undefined'
params = dict()
linters = LINTERS
linters_params = dict()
lname = 'undefined'
params = dict()
path = op.relpath(path, rootdir)

if options:
linters = options.linters
Expand All @@ -35,7 +36,6 @@ def run(path='', code=None, rootdir=CURDIR, options=None):

try:
with CodeContext(code, path) as ctx:
path = op.relpath(path, rootdir)
code = ctx.code
params = prepare_params(parse_modeline(code), fileconfig, options)
LOGGER.debug('Checking params: %s', params)
Expand Down Expand Up @@ -71,7 +71,7 @@ def run(path='', code=None, rootdir=CURDIR, options=None):
Error(linter=lname, lnum=e.lineno, col=e.offset, text=e.args[0],
filename=path))

except Exception as e:
except Exception as e: # noqa
import traceback
LOGGER.info(traceback.format_exc())

Expand Down
6 changes: 0 additions & 6 deletions setup.cfg
Expand Up @@ -3,9 +3,3 @@ universal = 1

[wheel]
universal = 1

[pylama]
path = docs

[pylama:mccabe]
complexity = 12
3 changes: 2 additions & 1 deletion setup.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python

""" Setup pylama installation. """
"""Setup pylama installation."""

import re
import sys
from os import path as op
Expand Down
2 changes: 1 addition & 1 deletion tests.py
Expand Up @@ -140,7 +140,7 @@ def test_config():
assert options
assert options.skip
assert not options.verbose
assert options.path == 'pylama'
assert options.paths == ['pylama']

options = parse_options(['-l', 'pep257,pep8', '-i', 'E'])
linters, _ = zip(*options.linters)
Expand Down

0 comments on commit c1b13fe

Please sign in to comment.