Skip to content

Commit 606487a

Browse files
authored
remove redundant pylint check (#635)
significant time savings in pre-commit pylint was only checking for one issue, which flake8 supports, but skipped remove the skip in flake8 config, so pylint can be removed
1 parent efde026 commit 606487a

File tree

10 files changed

+8
-15
lines changed

10 files changed

+8
-15
lines changed

.pre-commit-config.yaml

-5
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,3 @@ repos:
2727
rev: v7.32.0
2828
hooks:
2929
- id: eslint
30-
- repo: https://github.com/pre-commit/mirrors-pylint
31-
rev: v3.0.0a3
32-
hooks:
33-
- id: pylint
34-
args: [--disable=all, --enable=unused-import]

docs/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@
379379
spelling_word_list_filename = "spelling_wordlist.txt"
380380

381381
# import before any doc is built, so _ is guaranteed to be injected
382-
import jupyter_server.transutils # pylint: disable=unused-import
382+
import jupyter_server.transutils # noqa: F401
383383

384384

385385
def setup(app):

examples/simple/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from jupyter_server.conftest import *
1+
from jupyter_server.conftest import * # noqa

jupyter_server/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
del os
1515

16-
from ._version import version_info, __version__
16+
from ._version import version_info, __version__ # noqa
1717

1818

1919
def _cleanup():

jupyter_server/auth/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from .security import passwd
1+
from .security import passwd # noqa

jupyter_server/prometheus/metrics.py

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
# Jupyter Notebook also defines these metrics. Re-defining them results in a ValueError.
1010
# Try to de-duplicate by using the ones in Notebook if available.
1111
# See https://github.com/jupyter/jupyter_server/issues/209
12-
# pylint: disable=unused-import
1312
from notebook.prometheus.metrics import (
1413
HTTP_REQUEST_DURATION_SECONDS,
1514
TERMINAL_CURRENTLY_RUNNING_TOTAL,

jupyter_server/serverapp.py

-1
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,6 @@ def shutdown_server(server_info, timeout=5, log=None):
486486
Returns True if the server was stopped by any means, False if stopping it
487487
failed (on Windows).
488488
"""
489-
from tornado.httpclient import HTTPClient, HTTPRequest
490489

491490
url = server_info["url"]
492491
pid = server_info["pid"]
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from .manager import ConfigManager
1+
from .manager import ConfigManager # noqa

jupyter_server/utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
from urllib.parse import quote
1515
from urllib.parse import SplitResult
1616
from urllib.parse import unquote
17-
from urllib.parse import urljoin # pylint: disable=unused-import
17+
from urllib.parse import urljoin # noqa: F401
1818
from urllib.parse import urlparse
1919
from urllib.parse import urlsplit
2020
from urllib.parse import urlunsplit
21-
from urllib.request import pathname2url # pylint: disable=unused-import
21+
from urllib.request import pathname2url # noqa: F401
2222

2323
from tornado.httpclient import AsyncHTTPClient
2424
from tornado.httpclient import HTTPClient

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ console_scripts =
6464
exclude = ['docs*', 'examples*']
6565

6666
[flake8]
67-
ignore = E, C, W, F401, F403, F811, F841, E402, I100, I101, D400
67+
ignore = E, C, W, F403, F811, F841, E402, I100, I101, D400
6868
builtins = c, get_config
6969
exclude =
7070
.cache,

0 commit comments

Comments
 (0)