Skip to content

Commit 7295f0a

Browse files
committed
Fix lint configuration and failures
1 parent 02c513d commit 7295f0a

File tree

5 files changed

+20
-17
lines changed

5 files changed

+20
-17
lines changed

.flake8

Lines changed: 0 additions & 14 deletions
This file was deleted.

jupyter_resource_usage/api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import json
22
from concurrent.futures import ThreadPoolExecutor
33

4-
import psutil
54
from jupyter_server.base.handlers import APIHandler
5+
6+
import psutil
7+
68
from tornado import web
79
from tornado.concurrent import run_on_executor
810

jupyter_resource_usage/server_extension.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
from jupyter_server.utils import url_path_join
2-
from tornado import ioloop
32

43
from jupyter_resource_usage.api import ApiHandler
54
from jupyter_resource_usage.config import ResourceUseDisplay
65
from jupyter_resource_usage.metrics import PSUtilMetricsLoader
76
from jupyter_resource_usage.prometheus import PrometheusHandler
87

8+
from tornado import ioloop
9+
910

1011
def load_jupyter_server_extension(server_app):
1112
"""

jupyter_resource_usage/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import six
2+
23
from traitlets import TraitType
34

45
# copy-pasted from the master of Traitlets source

setup.cfg

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
[flake8]
22
max-line-length=200
3-
exclude=jupyter-resource-usage/tests
3+
# Ignore style and complexity
4+
# E: style errors
5+
# W: style warnings
6+
# F401: module imported but unused
7+
# F811: redefinition of unused `name` from line `N`
8+
# F841: local variable assigned but never used
9+
ignore = E, C, W, F401, F403, F811, F841, E402, I100, I101, D400
10+
exclude =
11+
jupyter-resource-usage/tests,
12+
helm-chart,
13+
hooks,
14+
setup.py,
15+
statuspage,
16+
versioneer.py
417

518
[metadata]
619
name = jupyter-resource-usage

0 commit comments

Comments
 (0)