Skip to content

Commit cbcbed0

Browse files
[pre-commit.ci] pre-commit autoupdate (#367)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.4.8 → v0.5.0](astral-sh/ruff-pre-commit@v0.4.8...v0.5.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * revert noqa changed --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ivan Shcheklein <shcheklein@gmail.com>
1 parent 17f56cf commit cbcbed0

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repos:
2020
- id: sort-simple-yaml
2121
- id: trailing-whitespace
2222
- repo: https://github.com/astral-sh/ruff-pre-commit
23-
rev: 'v0.4.8'
23+
rev: 'v0.5.0'
2424
hooks:
2525
- id: ruff
2626
args: [--fix, --exit-non-zero-on-fix]

src/scmrepo/git/credentials.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ def _prepare_command(self, action: Optional[str] = None) -> Union[str, list[str]
136136
if not shutil.which(executable) and shutil.which("git"):
137137
# If the helper cannot be found in PATH, it might be
138138
# 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"),
141141
text=True,
142142
).strip()
143143
if shutil.which(executable, path=git_exec_path):
@@ -158,8 +158,8 @@ def get(self, credential: "Credential", **kwargs) -> "Credential":
158158
helper_input.append("")
159159

160160
try:
161-
res = subprocess.run(
162-
cmd, # noqa: S603
161+
res = subprocess.run( # noqa: S603
162+
cmd,
163163
check=True,
164164
capture_output=True,
165165
input="\n".join(helper_input),
@@ -199,8 +199,8 @@ def store(self, credential: "Credential", **kwargs):
199199
helper_input.append("")
200200

201201
try:
202-
res = subprocess.run(
203-
cmd, # noqa: S603
202+
res = subprocess.run( # noqa: S603
203+
cmd,
204204
capture_output=True,
205205
input="\n".join(helper_input),
206206
encoding=self._encoding,
@@ -224,8 +224,8 @@ def erase(self, credential: "Credential", **kwargs):
224224
helper_input.append("")
225225

226226
try:
227-
res = subprocess.run(
228-
cmd, # noqa: S603
227+
res = subprocess.run( # noqa: S603
228+
cmd,
229229
capture_output=True,
230230
input="\n".join(helper_input),
231231
encoding=self._encoding,
@@ -448,8 +448,8 @@ def __init__(self, command: str):
448448
def input(self, prompt: str) -> str:
449449
argv = [self.command, prompt]
450450
try:
451-
res = subprocess.run(
452-
argv, # noqa: S603
451+
res = subprocess.run( # noqa: S603
452+
argv,
453453
check=True,
454454
capture_output=True,
455455
encoding=locale.getpreferredencoding(),

0 commit comments

Comments
 (0)