Skip to content

Commit 5d26033

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 914fd54 commit 5d26033

File tree

1 file changed

+3
-2
lines changed
  • src/setuptools_scm/_file_finders

1 file changed

+3
-2
lines changed

src/setuptools_scm/_file_finders/git.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ def _git_toplevel(path: str) -> str | None:
2727
# CI environments you can easily end up in a cloned repo
2828
# with incorrect permissions and we don't want to silently
2929
# ignore files.
30-
if ("--add safe.directory" in res.stderr and
31-
not os.environ.get('SETUPTOOLS_SCM_IGNORE_DUBIOUS_OWNER')):
30+
if "--add safe.directory" in res.stderr and not os.environ.get(
31+
"SETUPTOOLS_SCM_IGNORE_DUBIOUS_OWNER"
32+
):
3233
log.error(res.stderr)
3334
raise SystemExit(
3435
"git introspection failed: {}".format(res.stderr.split("\n")[0])

0 commit comments

Comments
 (0)