You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by vi...@apache.org on 2020/08/07 03:54:56 UTC
[incubator-superset] branch master updated: ci: bump pre-commit
py36 to py37 (#10541)
This is an automated email from the ASF dual-hosted git repository.
villebro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new 96b9ba3 ci: bump pre-commit py36 to py37 (#10541)
96b9ba3 is described below
commit 96b9ba33646155631356311b61a3fa4a0dac2241
Author: Ville Brofeldt <33...@users.noreply.github.com>
AuthorDate: Fri Aug 7 06:54:22 2020 +0300
ci: bump pre-commit py36 to py37 (#10541)
* ci: bump pre-commit py36 to py37
* add 3rd party for py37
* lint
* yet more lint
---
.github/workflows/superset-python.yml | 2 +-
setup.cfg | 2 +-
superset/db_engine_specs/base.py | 2 +-
superset/errors.py | 2 +-
superset/sql_parse.py | 2 +-
superset/views/base.py | 2 +-
superset/viz.py | 2 +-
superset/viz_sip38.py | 2 +-
8 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/superset-python.yml b/.github/workflows/superset-python.yml
index f8940db..1a1e2c7 100644
--- a/.github/workflows/superset-python.yml
+++ b/.github/workflows/superset-python.yml
@@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-18.04
strategy:
matrix:
- python-version: [3.6]
+ python-version: [3.7]
steps:
- name: Checkout code
uses: actions/checkout@v2
diff --git a/setup.cfg b/setup.cfg
index 18a0719..451865a 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -38,7 +38,7 @@ combine_as_imports = true
include_trailing_comma = true
line_length = 88
known_first_party = superset
-known_third_party =alembic,apispec,backoff,bleach,cachelib,celery,click,colorama,contextlib2,croniter,cryptography,dataclasses,dateutil,flask,flask_appbuilder,flask_babel,flask_caching,flask_compress,flask_login,flask_migrate,flask_sqlalchemy,flask_talisman,flask_testing,flask_wtf,geohash,geopy,humanize,isodate,jinja2,markdown,markupsafe,marshmallow,msgpack,numpy,pandas,parameterized,parsedatetime,pathlib2,polyline,prison,pyarrow,pyhive,pytest,pytz,retry,selenium,setuptools,simplejson,sl [...]
+known_third_party =alembic,apispec,backoff,bleach,cachelib,celery,click,colorama,contextlib2,croniter,cryptography,dateutil,flask,flask_appbuilder,flask_babel,flask_caching,flask_compress,flask_login,flask_migrate,flask_sqlalchemy,flask_talisman,flask_testing,flask_wtf,geohash,geopy,humanize,isodate,jinja2,markdown,markupsafe,marshmallow,msgpack,numpy,pandas,parameterized,parsedatetime,pathlib2,polyline,prison,pyarrow,pyhive,pytest,pytz,retry,selenium,setuptools,simplejson,slack,sphinx_r [...]
multi_line_output = 3
order_by_type = false
diff --git a/superset/db_engine_specs/base.py b/superset/db_engine_specs/base.py
index cfd651b..136ca55 100644
--- a/superset/db_engine_specs/base.py
+++ b/superset/db_engine_specs/base.py
@@ -15,6 +15,7 @@
# specific language governing permissions and limitations
# under the License.
# pylint: disable=unused-argument
+import dataclasses
import hashlib
import json
import logging
@@ -33,7 +34,6 @@ from typing import (
Union,
)
-import dataclasses
import pandas as pd
import sqlparse
from flask import g
diff --git a/superset/errors.py b/superset/errors.py
index 08a8cd8..3542d7d 100644
--- a/superset/errors.py
+++ b/superset/errors.py
@@ -15,10 +15,10 @@
# specific language governing permissions and limitations
# under the License.
# pylint: disable=too-few-public-methods,invalid-name
+from dataclasses import dataclass
from enum import Enum
from typing import Any, Dict, Optional
-from dataclasses import dataclass
from flask_babel import gettext as _
diff --git a/superset/sql_parse.py b/superset/sql_parse.py
index 2711949..e532a5e 100644
--- a/superset/sql_parse.py
+++ b/superset/sql_parse.py
@@ -15,12 +15,12 @@
# specific language governing permissions and limitations
# under the License.
import logging
+from dataclasses import dataclass
from enum import Enum
from typing import List, Optional, Set
from urllib import parse
import sqlparse
-from dataclasses import dataclass
from sqlparse.sql import Identifier, IdentifierList, remove_quotes, Token, TokenList
from sqlparse.tokens import Keyword, Name, Punctuation, String, Whitespace
from sqlparse.utils import imt
diff --git a/superset/views/base.py b/superset/views/base.py
index 7aeae79..692f289 100644
--- a/superset/views/base.py
+++ b/superset/views/base.py
@@ -14,13 +14,13 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
+import dataclasses
import functools
import logging
import traceback
from datetime import datetime
from typing import Any, Callable, cast, Dict, List, Optional, TYPE_CHECKING, Union
-import dataclasses
import simplejson as json
import yaml
from flask import abort, flash, g, get_flashed_messages, redirect, Response, session
diff --git a/superset/viz.py b/superset/viz.py
index 7d14bad..4619552 100644
--- a/superset/viz.py
+++ b/superset/viz.py
@@ -21,6 +21,7 @@ These objects represent the backend of all the visualizations that
Superset can render.
"""
import copy
+import dataclasses
import inspect
import logging
import math
@@ -42,7 +43,6 @@ from typing import (
Union,
)
-import dataclasses
import geohash
import numpy as np
import pandas as pd
diff --git a/superset/viz_sip38.py b/superset/viz_sip38.py
index 4b8c6a5..368fcec 100644
--- a/superset/viz_sip38.py
+++ b/superset/viz_sip38.py
@@ -22,6 +22,7 @@ Superset can render.
"""
# mypy: ignore-errors
import copy
+import dataclasses
import hashlib
import inspect
import logging
@@ -33,7 +34,6 @@ from datetime import datetime, timedelta
from itertools import product
from typing import Any, Dict, List, Optional, Set, Tuple, TYPE_CHECKING
-import dataclasses
import geohash
import numpy as np
import pandas as pd