summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml2
-rw-r--r--cmd2/cmd2.py4
-rw-r--r--tasks.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index fda08075..fc9c65bd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -46,7 +46,7 @@ before_script:
# stop the build if there are Python syntax errors or undefined names
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
if [[ $TOXENV == py37 ]]; then
- flake8 . --count --ignore=E252 --max-complexity=31 --max-line-length=127 --show-source --statistics ;
+ flake8 . --count --ignore=E252,W503 --max-complexity=31 --max-line-length=127 --show-source --statistics ;
fi
script:
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 9282c811..993162d1 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -1521,8 +1521,8 @@ class Cmd(cmd.Cmd):
# For delimited matches, we check for a space in what appears before the display
# matches (common_prefix) as well as in the display matches themselves.
- if (' ' in common_prefix) or (display_prefix and
- any(' ' in match for match in self.display_matches)):
+ if ' ' in common_prefix or (display_prefix
+ and any(' ' in match for match in self.display_matches)):
add_quote = True
# If there is a tab completion and any match has a space, then add an opening quote
diff --git a/tasks.py b/tasks.py
index d5f5976b..4d5a5b64 100644
--- a/tasks.py
+++ b/tasks.py
@@ -233,5 +233,5 @@ namespace.add_task(pypi_test)
@invoke.task
def flake8(context):
"Run flake8 linter and tool for style guide enforcement"
- context.run("flake8 --ignore=E252 --max-complexity=31 --max-line-length=127 --show-source --statistics")
+ context.run("flake8 --ignore=E252,W503 --max-complexity=31 --max-line-length=127 --show-source --statistics")
namespace.add_task(flake8)