Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#67)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.12.1 → 24.1.1](psf/black@23.12.1...24.1.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jan 29, 2024
1 parent 24edf32 commit 474397e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
- id: check-github-workflows
- id: check-dependabot
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
Expand Down
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 474397e

Please sign in to comment.