Skip to content

Commit 7683185

Browse files
committed
Apply formatting
1 parent d57f117 commit 7683185

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

sphinx_autobuild/__main__.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ def main():
4242
pre_build_commands=pre_build_commands,
4343
)
4444

45-
ignore_handler = _get_ignore_handler(args.ignore, args.re_ignore, outdir,
46-
args.warnings_file, args.doctree_dir)
45+
ignore_handler = _get_ignore_handler(
46+
args.ignore, args.re_ignore, outdir, args.warnings_file, args.doctree_dir
47+
)
4748
server.watch(srcdir, builder, ignore=ignore_handler)
4849
for dirpath in args.additional_watched_dirs:
4950
dirpath = os.path.realpath(dirpath)
@@ -54,7 +55,9 @@ def main():
5455
builder()
5556

5657
if args.openbrowser is True:
57-
server.serve(port=port_num, host=args.host, root=outdir, open_url_delay=args.delay)
58+
server.serve(
59+
port=port_num, host=args.host, root=outdir, open_url_delay=args.delay
60+
)
5861
else:
5962
server.serve(port=port_num, host=args.host, root=outdir)
6063

@@ -112,7 +115,7 @@ def _get_parser():
112115

113116

114117
def _add_autobuild_arguments(parser):
115-
group = parser.add_argument_group('autobuild options')
118+
group = parser.add_argument_group("autobuild options")
116119
group.add_argument(
117120
"--port",
118121
type=int,

sphinx_autobuild/build.py

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

66
from colorama import Fore, Style
7+
78
# This isn't public API, but we want to avoid a subprocess call
89
from sphinx.cmd.build import build_main
910

sphinx_autobuild/ignore.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ def __init__(self, regular, regex_based):
1212
self.regex_based_patterns = list(map(re.compile, regex_based))
1313

1414
def __repr__(self):
15-
return (f"Ignore(regular={self.regular_patterns!r}, "
16-
f"regex_based={self.regex_based_patterns!r})")
15+
return (
16+
f"Ignore(regular={self.regular_patterns!r}, "
17+
f"regex_based={self.regex_based_patterns!r})"
18+
)
1719

1820
def __call__(self, path):
1921
"""Determine if 'path' should be ignored."""

0 commit comments

Comments
 (0)