Skip to content

Commit 15a988c

Browse files
committed
update pylint to latest
1 parent 5cf7639 commit 15a988c

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

.pylintrc39

+2-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ disable=invalid-name,
159159
line-too-long,
160160
super-with-arguments,
161161
raise-missing-from,
162-
bad-option-value
162+
bad-option-value,
163+
unspecified-encoding
163164

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

dash/_validate.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ def validate_and_group_input_args(flat_args, arg_index_grouping):
138138
func_kwargs = args_grouping
139139
elif isinstance(arg_index_grouping, (tuple, list)):
140140
func_args = list(args_grouping)
141-
func_kwargs = dict()
141+
func_kwargs = {}
142142
else:
143143
# Scalar input
144144
func_args = [args_grouping]
145-
func_kwargs = dict()
145+
func_kwargs = {}
146146

147147
return func_args, func_kwargs
148148

dash/dash.py

+6-7
Original file line numberDiff line numberDiff line change
@@ -1079,12 +1079,11 @@ def long_callback(self, *_args, **_kwargs): # pylint: disable=too-many-statemen
10791079
this should be a list of argument names as strings. Otherwise,
10801080
this should be a list of argument indices as integers.
10811081
"""
1082-
from dash._callback_context import ( # pylint: disable=import-outside-toplevel
1083-
callback_context,
1084-
)
1085-
from dash.exceptions import ( # pylint: disable=import-outside-toplevel
1086-
WildcardInLongCallback,
1087-
)
1082+
# pylint: disable-next=import-outside-toplevel
1083+
from dash._callback_context import callback_context
1084+
1085+
# pylint: disable-next=import-outside-toplevel
1086+
from dash.exceptions import WildcardInLongCallback
10881087

10891088
# Get long callback manager
10901089
callback_manager = _kwargs.pop("manager", self._long_callback_manager)
@@ -1140,7 +1139,7 @@ def long_callback(self, *_args, **_kwargs): # pylint: disable=too-many-statemen
11401139
id=interval_id, interval=interval_time, disabled=prevent_initial_call
11411140
)
11421141
store_id = f"_long_callback_store_{long_callback_id}"
1143-
store_component = dcc.Store(id=store_id, data=dict())
1142+
store_component = dcc.Store(id=store_id, data={})
11441143
self._extra_components.extend([interval_component, store_component])
11451144

11461145
# Compute full component plus property name for the cancel dependencies

dash/long_callback/managers/diskcache_manager.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ def clear_cache_entry(self, key):
9797
self.handle.delete(key)
9898

9999
def call_job_fn(self, key, job_fn, args):
100-
from multiprocess import ( # pylint: disable=import-outside-toplevel,no-name-in-module,import-error
101-
Process,
102-
)
100+
# pylint: disable-next=import-outside-toplevel,no-name-in-module,import-error
101+
from multiprocess import Process
103102

103+
# pylint: disable-next=not-callable
104104
proc = Process(target=job_fn, args=(key, self._make_progress_key(key), args))
105105
proc.start()
106106
return proc.pid

dash/testing/browser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def wait_for_page(self, url=None, timeout=10):
362362
except ImportError:
363363
import ipdb as pdb_ # pylint: disable=import-outside-toplevel
364364

365-
pdb_.set_trace()
365+
pdb_.set_trace() # pylint: disable=forgotten-debug-statement
366366

367367
def select_dcc_dropdown(self, elem_or_selector, value=None, index=None):
368368
dropdown = self._get_element(elem_or_selector)

requires-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ isort==4.3.21;python_version<"3.7"
44
mock==4.0.3
55
flake8==3.9.2
66
PyYAML==5.4.1
7-
pylint==2.9.3
7+
pylint==2.10.2
88
black==21.6b0
99
fire==0.4.0
1010
coloredlogs==15.0.1

0 commit comments

Comments
 (0)