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 29, 2024
1 parent d92f24b commit d2b0f5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/texthooks/_recorders.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ def __init__(self, verbosity: int):
# in py3.6+ the dict builtin maintains order, but being explicit is
# slightly safer since we're being explicit about the fact that we want
# to retain key order
self.by_fname: t.MutableMapping[
str, t.List[t.Tuple[str, str, int]]
] = collections.OrderedDict()
self.by_fname: t.MutableMapping[str, t.List[t.Tuple[str, str, int]]] = (
collections.OrderedDict()
)
self._file_encoding = _determine_encoding()

def add(self, fname, original, updated, lineno):
Expand Down Expand Up @@ -143,9 +143,9 @@ def print_changes(
class CheckRecorder:
def __init__(self, verbosity: int):
self._printer = _VPrinter(verbosity)
self.by_fname: t.MutableMapping[
str, t.List[t.Tuple[str, str, int]]
] = collections.OrderedDict()
self.by_fname: t.MutableMapping[str, t.List[t.Tuple[str, str, int]]] = (
collections.OrderedDict()
)
self._file_encoding = _determine_encoding()

def add(self, fname, lineno):
Expand Down
1 change: 1 addition & 0 deletions src/texthooks/macro_expand.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
--macro 'issue:' '[texthooks#$VALUE](https://github.com/sirosen/texthooks/issues/$VALUE)'
""" # noqa: E501

import re

from ._common import all_filenames, parse_cli_args
Expand Down

0 comments on commit d2b0f5d

Please sign in to comment.