Skip to content

Commit

Permalink
chore: Pylint downgrade (#16617)
Browse files Browse the repository at this point in the history
* Update testing.in

* chore: downgrade pylint to 2.9.6

* downgrade dependence for pylint

* trim space

* pylint rules

Co-authored-by: Yongjie Zhao <[email protected]>
  • Loading branch information
amitmiran137 and zhaoyongjie authored Sep 8, 2021
1 parent 519baa6 commit 420dd5b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion requirements/testing.in
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ openpyxl
parameterized
pyfakefs
pyhive[presto]>=0.6.3
pylint==2.10.2
pylint==2.9.6
pytest
pytest-cov
statsd
Expand Down
6 changes: 3 additions & 3 deletions requirements/testing.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SHA1:59e47200215ca4695f09e03a773e1a6f310f78da
# SHA1:97a1d3094738243d47824948a0d6fdcb4a784524
#
# This file is autogenerated by pip-compile-multi
# To update, run:
Expand All @@ -11,7 +11,7 @@
# via -r requirements/base.in
appnope==0.1.2
# via ipython
astroid==2.7.2
astroid==2.6.6
# via pylint
backcall==0.2.0
# via ipython
Expand Down Expand Up @@ -71,7 +71,7 @@ pyhive[hive,presto]==0.6.4
# via
# -r requirements/development.in
# -r requirements/testing.in
pylint==2.10.2
pylint==2.9.6
# via -r requirements/testing.in
pytest==6.2.4
# via
Expand Down
3 changes: 3 additions & 0 deletions superset/tasks/async_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def load_chart_data_into_cache(
raise exc
except Exception as exc:
# TODO: QueryContext should support SIP-40 style errors
# pylint: disable=no-member
error = exc.message if hasattr(exc, "message") else str(exc) # type: ignore
errors = [{"message": error}]
async_query_manager.update_job(
Expand Down Expand Up @@ -127,7 +128,9 @@ def load_explore_json_into_cache( # pylint: disable=too-many-locals
logger.warning("A timeout occurred while loading explore json, error: %s", ex)
raise ex
except Exception as exc:
# pylint: disable=no-member
if isinstance(exc, SupersetVizException):
# pylint: disable=no-member
errors = exc.errors
else:
error = exc.message if hasattr(exc, "message") else str(exc) # type: ignore
Expand Down
2 changes: 1 addition & 1 deletion superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2566,7 +2566,7 @@ def is_query_handled(cls, query: Optional[Query]) -> bool:
QueryStatus.TIMED_OUT,
]

def sql_json_exec( # pylint: disable=too-many-statements
def sql_json_exec( # pylint: disable=too-many-statements,useless-suppression
self,
execution_context: SqlJsonExecutionContext,
log_params: Optional[Dict[str, Any]] = None,
Expand Down

0 comments on commit 420dd5b

Please sign in to comment.