Skip to content

Commit 15ad7f5

Browse files
committed
update pylint exclusions for new version
1 parent 399373a commit 15ad7f5

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.pylintrc37

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ disable=invalid-name,
149149
too-many-lines,
150150
too-many-statements,
151151
bad-continuation,
152-
line-too-long
152+
line-too-long,
153+
super-with-arguments,
154+
raise-missing-from
153155

154156
# Enable the message, report, category or checker with the given id(s). You can
155157
# either give multiple identifier separated by comma (,) or put this option

dash/testing/application_runners.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def _stop_server():
125125
stopper()
126126
return "Flask server is shutting down"
127127

128-
# pylint: disable=arguments-differ,C0330
128+
# pylint: disable=arguments-differ
129129
def start(self, app, **kwargs):
130130
"""Start the app server in threading flavor."""
131131
app.server.add_url_rule(self.stop_route, self.stop_route, self._stop_server)

dash/testing/browser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,9 @@ def wait_for_page(self, url=None, timeout=10):
358358

359359
if self._pause:
360360
try:
361-
import pdb as pdb_
361+
import pdb as pdb_ # pylint: disable=import-outside-toplevel
362362
except ImportError:
363-
import ipdb as pdb_
363+
import ipdb as pdb_ # pylint: disable=import-outside-toplevel
364364

365365
pdb_.set_trace()
366366

dash/testing/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def pytest_addoption(parser):
6565
def pytest_addhooks(pluginmanager):
6666
# https://github.com/pytest-dev/pytest-xdist/blob/974bd566c599dc6a9ea291838c6f226197208b46/xdist/plugin.py#L67
6767
# avoid warnings with pytest-2.8
68-
from dash.testing import newhooks
68+
from dash.testing import newhooks # pylint: disable=import-outside-toplevel
6969

7070
method = getattr(pluginmanager, "add_hookspecs", None)
7171
if method is None:

0 commit comments

Comments
 (0)