1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-10-30 14:44:05 +00:00

Fix flake8 errors: E127 continuation line over-indented for visual indent

This commit is contained in:
Joseph Frazier
2016-10-06 15:16:43 -04:00
parent e0cab4fa1b
commit 521eb03d7a
8 changed files with 32 additions and 32 deletions

View File

@@ -8,13 +8,13 @@ def stderr():
return ("Error: Could not symlink bin/gcp\n"
"Target /usr/local/bin/gcp\n"
"already exists. You may want to remove it:\n"
"rm '/usr/local/bin/gcp'\n"
" rm '/usr/local/bin/gcp'\n"
"\n"
"To force the link and overwrite all conflicting files:\n"
"brew link --overwrite coreutils\n"
" brew link --overwrite coreutils\n"
"\n"
"To list all files that would be deleted:\n"
"brew link --overwrite --dry-run coreutils\n")
" brew link --overwrite --dry-run coreutils\n")
@pytest.fixture

View File

@@ -51,6 +51,6 @@ def test_get_new_command(composer_not_command, composer_not_command_one_of_this)
assert (get_new_command(Command('composer udpate',
stderr=composer_not_command))
== 'composer update')
assert get_new_command(
Command('composer pdate', stderr=composer_not_command_one_of_this)) \
== 'composer selfupdate'
assert (get_new_command(Command('composer pdate',
stderr=composer_not_command_one_of_this))
== 'composer selfupdate')

View File

@@ -18,5 +18,5 @@ def test_match():
def test_get_new_command():
""" Replace the Alt+Space character by a simple space """
assert get_new_command(Command(u'ps -ef | grep foo'))\
== 'ps -ef | grep foo'
assert (get_new_command(Command(u'ps -ef | grep foo'))
== 'ps -ef | grep foo')

View File

@@ -51,7 +51,7 @@ def test_get_new_command(git_not_command, git_not_command_one_of_this,
git_not_command_closest):
assert (get_new_command(Command('git brnch', stderr=git_not_command))
== ['git branch'])
assert get_new_command(Command('git st', stderr=git_not_command_one_of_this)) \
== ['git stats', 'git stash', 'git stage']
assert get_new_command(Command('git tags', stderr=git_not_command_closest)) \
== ['git tag', 'git stage']
assert (get_new_command(Command('git st', stderr=git_not_command_one_of_this))
== ['git stats', 'git stash', 'git stage'])
assert (get_new_command(Command('git tags', stderr=git_not_command_closest))
== ['git tag', 'git stage'])