Skip to content

Commit cb696b2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 10bbd8e commit cb696b2

28 files changed

+44
-4
lines changed

admin/check_tag_version_match.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
#
1010

1111
import sys
12+
1213
from importlib import metadata
1314

15+
1416
TAG_PREFIX = "refs/tags/"
1517

1618
if len(sys.argv) < 2:

bin/towncrier

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
import os.path
55
import sys
66

7+
78
srcdir = os.path.join(os.path.dirname(__file__), "..", "src")
89
sys.path.insert(0, srcdir)
910

1011
import towncrier
1112

13+
1214
towncrier._main()

docs/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@
3030
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3131
# ones.
3232
import os
33+
3334
from datetime import date
3435
from importlib.metadata import version
3536

37+
3638
towncrier_version = version("towncrier")
3739

3840

noxfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import nox
66

7+
78
nox.options.sessions = ["pre_commit", "docs", "typecheck", "tests"]
89
nox.options.reuse_existing_virtualenvs = True
910
nox.options.error_on_external_run = True

src/towncrier/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
from towncrier._shell import cli
44

5+
56
cli()

src/towncrier/_builder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import os
88
import re
99
import textwrap
10+
1011
from collections import defaultdict
1112
from collections.abc import Iterable, Iterator, Mapping, Sequence
1213
from fnmatch import fnmatch

src/towncrier/_git.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from __future__ import annotations
55

66
import os
7+
78
from collections.abc import Container
89
from subprocess import STDOUT, call, check_output
910
from warnings import warn

src/towncrier/_hg.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from __future__ import annotations
55

66
import os
7+
78
from collections.abc import Container
89
from subprocess import STDOUT, call, check_output
910

src/towncrier/_novcs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from __future__ import annotations
55

66
import os
7+
78
from collections.abc import Container
89

910

src/towncrier/_project.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import contextlib
1111
import importlib.metadata
1212
import sys
13+
1314
from importlib import import_module
1415
from importlib.metadata import PackageNotFoundError
1516
from types import ModuleType

0 commit comments

Comments
 (0)