Skip to content

Commit ce3e8fa

Browse files
committed
Fix recent linting issues
Looks like flake8 deps pulled in newer versions of either pep8 of pyflakes that is causing new failures. I'd like to keep the existing code passing as is, so I've made a small change for pep8 compliance but otherwise just ignored the new suggestions.
1 parent 046fac5 commit ce3e8fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ check:
77
# No unused imports, no undefined vars,
88
# follow pep8, and max cyclomatic complexity of 15.
99
# I'd eventually like to lower this down to < 10.
10-
flake8 --exclude awsshell/compat.py --max-complexity 15 awsshell/*.py
10+
flake8 --ignore=E731,W503 --exclude awsshell/compat.py --max-complexity 15 awsshell/*.py
1111
#
1212
#
1313
##### DOC8 ######

awsshell/fuzzy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def calculate_score(search_string, word):
7373
else:
7474
scale = 1 - (i / float(len(word)))
7575
score *= scale
76-
word = word[i+1:]
76+
word = word[i + 1:]
7777
search_index += 1
7878
if search_index >= len(search_string):
7979
break

0 commit comments

Comments
 (0)