Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 1, 2024
1 parent 69835c2 commit b066d61
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/scmrepo/git/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def _prepare_command(self, action: Optional[str] = None) -> Union[str, list[str]
# If the helper cannot be found in PATH, it might be
# a C git helper in GIT_EXEC_PATH
git_exec_path = subprocess.check_output(
("git", "--exec-path"), # noqa: S603
("git", "--exec-path"),
text=True,
).strip()
if shutil.which(executable, path=git_exec_path):
Expand All @@ -159,7 +159,7 @@ def get(self, credential: "Credential", **kwargs) -> "Credential":

try:
res = subprocess.run(
cmd, # noqa: S603
cmd,
check=True,
capture_output=True,
input="\n".join(helper_input),
Expand Down Expand Up @@ -200,7 +200,7 @@ def store(self, credential: "Credential", **kwargs):

try:
res = subprocess.run(
cmd, # noqa: S603
cmd,
capture_output=True,
input="\n".join(helper_input),
encoding=self._encoding,
Expand All @@ -225,7 +225,7 @@ def erase(self, credential: "Credential", **kwargs):

try:
res = subprocess.run(
cmd, # noqa: S603
cmd,
capture_output=True,
input="\n".join(helper_input),
encoding=self._encoding,
Expand Down Expand Up @@ -449,7 +449,7 @@ def input(self, prompt: str) -> str:
argv = [self.command, prompt]
try:
res = subprocess.run(
argv, # noqa: S603
argv,
check=True,
capture_output=True,
encoding=locale.getpreferredencoding(),
Expand Down

0 comments on commit b066d61

Please sign in to comment.