Skip to content

Commit a8359a2

Browse files
committed
format
1 parent 728bfcd commit a8359a2

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

sphinx_autobuild/__main__.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@
2222
from sphinx_autobuild.filter import IgnoreFilter
2323
from sphinx_autobuild.middleware import JavascriptInjectorMiddleware
2424
from sphinx_autobuild.server import RebuildServer
25-
from sphinx_autobuild.utils import find_free_port, is_port_available, open_browser, show_message
25+
from sphinx_autobuild.utils import (
26+
find_free_port,
27+
is_port_available,
28+
open_browser,
29+
show_message,
30+
)
2631

2732

2833
def main(argv=()):
@@ -122,7 +127,8 @@ def _run_with_port_fallback(
122127
if port_explicitly_set:
123128
show_message(
124129
f"Error: Cannot bind to {host_name}:{port_num}. "
125-
f"The port is already in use. Use --port 0 to automatically find a free port."
130+
f"The port is already in use. "
131+
f"Use --port 0 to automatically find a free port."
126132
)
127133
sys.exit(1)
128134
else:
@@ -244,7 +250,10 @@ def _add_autobuild_arguments(parser):
244250
"--port",
245251
type=int,
246252
default=None,
247-
help="port to serve documentation on (defaults to 8000, or a free port if 8000 is in use)",
253+
help=(
254+
"port to serve documentation on "
255+
"(defaults to 8000, or a free port if 8000 is in use)"
256+
),
248257
)
249258
group.add_argument(
250259
"--host",

0 commit comments

Comments
 (0)