Skip to content

Commit 89428f8

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

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

jupyter_server/prometheus/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from .server import PrometheusMetricsServer, start_metrics_server
1616

1717
__all__ = [
18-
"KERNEL_CURRENTLY_RUNNING_TOTAL",
18+
"KERNEL_CURRENTLY_RUNNING_TOTAL",
1919
"TERMINAL_CURRENTLY_RUNNING_TOTAL",
2020
"SERVER_INFO",
2121
"SERVER_EXTENSION_INFO",

jupyter_server/prometheus/server.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import prometheus_client
2727
import tornado.httpserver
2828
import tornado.ioloop
29-
import prometheus_client
3029

3130
from jupyter_server._version import __version__
3231
from jupyter_server.base.handlers import PrometheusMetricsHandler

jupyter_server/serverapp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3125,7 +3125,7 @@ def start_app(self) -> None:
31253125
if self.identity_provider.token and self.identity_provider.token_generated:
31263126
# log full URL with generated token, so there's a copy/pasteable link
31273127
# with auth info.
3128-
3128+
31293129
# Determine metrics URL based on whether separate metrics server is running
31303130
if self.metrics_port:
31313131
# Separate metrics server is running
@@ -3136,12 +3136,12 @@ def start_app(self) -> None:
31363136
else:
31373137
# Metrics are served on main server
31383138
# Use the connection_url as base and append /metrics
3139-
base_url = self.connection_url.rstrip('/')
3139+
base_url = self.connection_url.rstrip("/")
31403140
if self.authenticate_prometheus:
31413141
metrics_url = f"{base_url}/metrics?token={self.identity_provider.token}"
31423142
else:
31433143
metrics_url = f"{base_url}/metrics"
3144-
3144+
31453145
if self.sock:
31463146
self.log.critical(
31473147
"\n".join(

0 commit comments

Comments
 (0)