mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Some manual .format() -> f-strings
This commit is contained in:
parent
aefbe71765
commit
9000e9dd41
27 changed files with 133 additions and 173 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import os.path
|
||||
import pipes
|
||||
import shlex
|
||||
|
||||
from pre_commit.languages.ruby import _install_rbenv
|
||||
from pre_commit.prefix import Prefix
|
||||
|
|
@ -21,7 +21,7 @@ def test_install_rbenv(tempdir_factory):
|
|||
cmd_output(
|
||||
'bash', '-c',
|
||||
'. {} && rbenv --help'.format(
|
||||
pipes.quote(prefix.path('rbenv-default', 'bin', 'activate')),
|
||||
shlex.quote(prefix.path('rbenv-default', 'bin', 'activate')),
|
||||
),
|
||||
)
|
||||
|
||||
|
|
@ -35,6 +35,6 @@ def test_install_rbenv_with_version(tempdir_factory):
|
|||
cmd_output(
|
||||
'bash', '-c',
|
||||
'. {} && rbenv install --help'.format(
|
||||
pipes.quote(prefix.path('rbenv-1.9.3p547', 'bin', 'activate')),
|
||||
shlex.quote(prefix.path('rbenv-1.9.3p547', 'bin', 'activate')),
|
||||
),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue