Comply to new flake8 3.6 (#853)

* #N/A: Ignore W504 line break after binary operator

W504 is now part of flake8 current version 3.6

* #N/A: Fix invalid escape sequences

* #N/A: Remove conflicting path before installing gcc with brew
This commit is contained in:
Pablo Aguiar
2018-10-30 20:56:55 +01:00
committed by Vladimir Iakovlev
parent d226b8f258
commit e6be00a63b
7 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import re
from thefuck.utils import for_app, replace_argument
INVALID_CHOICE = "(?<=Invalid choice: ')(.*)(?=', maybe you meant:)"
OPTIONS = "^\s*\*\s(.*)"
OPTIONS = "^\\s*\\*\\s(.*)"
@for_app('aws')
+1 -1
View File
@@ -3,7 +3,7 @@ import re
from thefuck.utils import for_app, replace_argument
INVALID_CHOICE = "(?=az)(?:.*): '(.*)' is not in the '.*' command group."
OPTIONS = "^The most similar choice to '.*' is:\n\s*(.*)$"
OPTIONS = "^The most similar choice to '.*' is:\n\\s*(.*)$"
@for_app('az')
+1 -1
View File
@@ -8,5 +8,5 @@ def match(command):
def get_new_command(command):
apps = re.findall('([^ ]*) \([^)]*\)', command.output)
apps = re.findall('([^ ]*) \\([^)]*\\)', command.output)
return [command.script + ' --app ' + app for app in apps]
+1 -1
View File
@@ -82,7 +82,7 @@ class Generic(object):
encoded = self.encode_utf8(command)
try:
splitted = [s.replace("??", "\ ") for s in shlex.split(encoded.replace('\ ', '??'))]
splitted = [s.replace("??", "\\ ") for s in shlex.split(encoded.replace('\\ ', '??'))]
except ValueError:
splitted = encoded.split(' ')