Skip to content

Commit 86dc0f2

Browse files
committed
Fix comments codestyle in python
1 parent d3e18d9 commit 86dc0f2

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

images/base-notebook/start-notebook.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@
2424
# We always launch a jupyter subcommand from this script
2525
command.append("jupyter")
2626

27-
# Launch the configured subcommand. Note that this should be a single string, so we don't split it
28-
# We default to lab
27+
# Launch the configured subcommand.
28+
# Note that this should be a single string, so we don't split it.
29+
# We default to `lab`.
2930
jupyter_command = os.environ.get("DOCKER_STACKS_JUPYTER_CMD", "lab")
3031
command.append(jupyter_command)
3132

32-
# Append any optional NOTEBOOK_ARGS we were passed in. This is supposed to be multiple args passed
33-
# on to the notebook command, so we split it correctly with shlex
33+
# Append any optional NOTEBOOK_ARGS we were passed in.
34+
# This is supposed to be multiple args passed on to the notebook command,
35+
# so we split it correctly with shlex
3436
if "NOTEBOOK_ARGS" in os.environ:
3537
command += shlex.split(os.environ["NOTEBOOK_ARGS"])
3638

tests/base-notebook/test_container_options.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ def test_unsigned_ssl(
6565
environment=["GEN_CERT=yes"],
6666
ports={"8888/tcp": host_port},
6767
)
68-
# NOTE: The requests.Session backing the http_client fixture does not retry
69-
# properly while the server is booting up. An SSL handshake error seems to
70-
# abort the retry logic. Forcing a long sleep for the moment until I have
71-
# time to dig more.
68+
# NOTE: The requests.Session backing the http_client fixture
69+
# does not retry properly while the server is booting up.
70+
# An SSL handshake error seems to abort the retry logic.
71+
# Forcing a long sleep for the moment until I have time to dig more.
7272
time.sleep(1)
7373
resp = http_client.get(f"https://localhost:{host_port}", verify=False)
7474
resp.raise_for_status()

0 commit comments

Comments
 (0)