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 Jan 13, 2025
1 parent 4af2465 commit 81fc3fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/textmate_grammar/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

from abc import ABC
from collections import defaultdict
from collections.abc import Generator
from itertools import groupby
from pprint import pprint
from typing import TYPE_CHECKING, Generator
from typing import TYPE_CHECKING

from .handler import POS, ContentHandler, Match, Pattern
from .utils.logger import LOGGER
Expand Down
2 changes: 1 addition & 1 deletion src/textmate_grammar/utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def format_message(
else:
msg_id = "." * self.max_token_length

vb_message = f"{'|'*(depth-1)}{'-'*bool(depth)}{message}"
vb_message = f"{'|' * (depth - 1)}{'-' * bool(depth)}{message}"

if len(vb_message) > MAX_LENGTH:
half_length = min([(MAX_LENGTH - 6) // 2, (len(vb_message) - 6) // 2])
Expand Down

0 comments on commit 81fc3fd

Please sign in to comment.