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 Mar 1, 2024
1 parent 40c8328 commit 19e9614
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pre_commit/git.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from __future__ import annotations

import logging
import os
import os.path
import sys
from collections.abc import Mapping
from enum import Flag, auto
from enum import auto
from enum import Flag

from pre_commit.errors import FatalError
from pre_commit.util import CalledProcessError
Expand Down Expand Up @@ -90,6 +90,7 @@ def get_root() -> str:

SAPLING_CLI = 'sl'


def get_sapling_root() -> str | None:
try:
sapling_root = sapling_output('root')[1].strip()
Expand All @@ -111,7 +112,7 @@ class SaplingStatus(Flag):


def sapling_status(status_flags: SaplingStatus) -> list[str]:
args = ["status", "--print0", "--root-relative", "--no-status"]
args = ['status', '--print0', '--root-relative', '--no-status']
for enum_value, flag in [
(SaplingStatus.MODIFIED, '--modified'),
(SaplingStatus.ADDED, '--added'),
Expand Down

0 comments on commit 19e9614

Please sign in to comment.