Skip to content

Commit 237e55a

Browse files
committed
Merge pull request python-mode#451 from krader1961/develop
Fix issue python-mode#447.
2 parents a62f8ab + 559240f commit 237e55a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pymode/libs/pylama/lint/pylama_mccabe/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ def run(path, code=None, params=None, **meta):
1616
"""
1717
from .mccabe import get_code_complexity
1818

19-
complexity = params.get('complexity', 10)
19+
complexity = int(params.get('complexity', 10))
2020
return get_code_complexity(code, complexity, filename=path) or []

pymode/libs/pylama/lint/pylama_pep8/pep8.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ def maximum_line_length(physical_line, max_line_length, multiline):
199199
200200
Reports error E501.
201201
"""
202+
max_line_length = int(max_line_length)
202203
line = physical_line.rstrip()
203204
length = len(line)
204205
if length > max_line_length and not noqa(line):

0 commit comments

Comments
 (0)