@@ -136,8 +136,8 @@ def _prepare_command(self, action: Optional[str] = None) -> Union[str, list[str]
136
136
if not shutil .which (executable ) and shutil .which ("git" ):
137
137
# If the helper cannot be found in PATH, it might be
138
138
# a C git helper in GIT_EXEC_PATH
139
- git_exec_path = subprocess .check_output (
140
- ("git" , "--exec-path" ), # noqa: S603
139
+ git_exec_path = subprocess .check_output ( # noqa: S603
140
+ ("git" , "--exec-path" ),
141
141
text = True ,
142
142
).strip ()
143
143
if shutil .which (executable , path = git_exec_path ):
@@ -158,8 +158,8 @@ def get(self, credential: "Credential", **kwargs) -> "Credential":
158
158
helper_input .append ("" )
159
159
160
160
try :
161
- res = subprocess .run (
162
- cmd , # noqa: S603
161
+ res = subprocess .run ( # noqa: S603
162
+ cmd ,
163
163
check = True ,
164
164
capture_output = True ,
165
165
input = "\n " .join (helper_input ),
@@ -199,8 +199,8 @@ def store(self, credential: "Credential", **kwargs):
199
199
helper_input .append ("" )
200
200
201
201
try :
202
- res = subprocess .run (
203
- cmd , # noqa: S603
202
+ res = subprocess .run ( # noqa: S603
203
+ cmd ,
204
204
capture_output = True ,
205
205
input = "\n " .join (helper_input ),
206
206
encoding = self ._encoding ,
@@ -224,8 +224,8 @@ def erase(self, credential: "Credential", **kwargs):
224
224
helper_input .append ("" )
225
225
226
226
try :
227
- res = subprocess .run (
228
- cmd , # noqa: S603
227
+ res = subprocess .run ( # noqa: S603
228
+ cmd ,
229
229
capture_output = True ,
230
230
input = "\n " .join (helper_input ),
231
231
encoding = self ._encoding ,
@@ -448,8 +448,8 @@ def __init__(self, command: str):
448
448
def input (self , prompt : str ) -> str :
449
449
argv = [self .command , prompt ]
450
450
try :
451
- res = subprocess .run (
452
- argv , # noqa: S603
451
+ res = subprocess .run ( # noqa: S603
452
+ argv ,
453
453
check = True ,
454
454
capture_output = True ,
455
455
encoding = locale .getpreferredencoding (),
0 commit comments