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:
@@ -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
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user