Skip to content

Commit

Permalink
Fix formatting (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio authored Feb 6, 2023
1 parent 4a7ff2d commit a24c7d6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion jupyter_resource_usage/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ def get_cpu_percent(p):
class KernelUsageHandler(APIHandler):
@web.authenticated
async def get(self, matched_part=None, *args, **kwargs):

if not USAGE_IS_SUPPORTED:
self.write(json.dumps({}))
return
Expand Down
1 change: 0 additions & 1 deletion jupyter_resource_usage/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def get_metric_values(self, metrics, metric_type):
return metric_values

def metrics(self, process_metrics, system_metrics):

metric_values = self.get_metric_values(process_metrics, "process")
metric_values.update(self.get_metric_values(system_metrics, "system"))

Expand Down
1 change: 0 additions & 1 deletion jupyter_resource_usage/tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def test_import_serverextension(self):
) as prometheus_handler_mock, patch(
"jupyter_resource_usage.server_extension.PSUtilMetricsLoader"
) as psutil_metrics_loader:

# load up with mock
load_jupyter_server_extension(nbapp_mock)

Expand Down

0 comments on commit a24c7d6

Please sign in to comment.