Skip to content

Commit 68b03bf

Browse files
committed
Fixed flake errors
1 parent 89b5c20 commit 68b03bf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ before_script:
4646
# stop the build if there are Python syntax errors or undefined names
4747
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
4848
if [[ $TOXENV == py37 ]]; then
49-
flake8 . --count --ignore=E252 --max-complexity=31 --max-line-length=127 --show-source --statistics ;
49+
flake8 . --count --ignore=E252,W503 --max-complexity=31 --max-line-length=127 --show-source --statistics ;
5050
fi
5151

5252
script:

cmd2/cmd2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,8 +1521,8 @@ def _complete_worker(self, text: str, state: int) -> Optional[str]:
15211521

15221522
# For delimited matches, we check for a space in what appears before the display
15231523
# matches (common_prefix) as well as in the display matches themselves.
1524-
if (' ' in common_prefix) or (display_prefix and
1525-
any(' ' in match for match in self.display_matches)):
1524+
if ' ' in common_prefix or (display_prefix
1525+
and any(' ' in match for match in self.display_matches)):
15261526
add_quote = True
15271527

15281528
# If there is a tab completion and any match has a space, then add an opening quote

tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,5 +233,5 @@ def pypi_test(context):
233233
@invoke.task
234234
def flake8(context):
235235
"Run flake8 linter and tool for style guide enforcement"
236-
context.run("flake8 --ignore=E252 --max-complexity=31 --max-line-length=127 --show-source --statistics")
236+
context.run("flake8 --ignore=E252,W503 --max-complexity=31 --max-line-length=127 --show-source --statistics")
237237
namespace.add_task(flake8)

0 commit comments

Comments
 (0)