This is an automated email from the ASF dual-hosted git repository.
johnbodley 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 821916a chore: pre-commit run --all-files (#10500)
821916a is described below
commit 821916a681921e7a4e583009b10aee75c0a4ec73
Author: John Bodley <[email protected]>
AuthorDate: Sun Aug 2 14:32:17 2020 -0700
chore: pre-commit run --all-files (#10500)
Co-authored-by: John Bodley <[email protected]>
---
.github/workflows/license-check.yml | 4 +--
.github/workflows/prefer_typescript.yml | 2 +-
.pre-commit-config.yaml | 1 +
CONTRIBUTING.md | 2 +-
DISCLAIMER | 2 +-
INTHEWILD.md | 33 +++++++++++-----------
LICENSE.txt | 2 +-
docker/README.md | 8 +++---
docs/import_export_datasources.rst | 1 -
docs/security.rst | 32 ++++++++++-----------
helm/superset/requirements.yaml | 2 +-
.../superset/templates/secret-superset-config.yaml | 2 +-
requirements-dev.txt | 1 -
scripts/permissions_cleanup.py | 6 ++--
superset-frontend/.storybook/main.js | 2 +-
superset-frontend/.storybook/preview.jsx | 2 +-
superset-frontend/fonts/FiraCode/specimen.less | 2 +-
superset-frontend/images/icons/cancel-x.svg | 6 ++--
superset-frontend/images/icons/checkbox-half.svg | 4 +--
superset-frontend/images/icons/checkbox-off.svg | 4 +--
superset-frontend/images/icons/checkbox-on.svg | 4 +--
superset-frontend/images/icons/compass.svg | 4 +--
.../images/icons/dataset_physical.svg | 4 +--
superset-frontend/images/icons/dataset_virtual.svg | 4 +--
superset-frontend/images/icons/error.svg | 4 +--
superset-frontend/images/icons/pencil.svg | 4 +--
superset-frontend/images/icons/search.svg | 6 ++--
superset-frontend/images/icons/sort-asc.svg | 4 +--
superset-frontend/images/icons/sort-desc.svg | 4 +--
superset-frontend/images/icons/sort.svg | 4 +--
superset-frontend/images/icons/trash.svg | 4 +--
superset-frontend/images/icons/warning.svg | 4 +--
.../src/views/CRUD/dataset/DatasetList.tsx | 8 +++---
superset/bin/superset | 2 +-
superset/dashboards/schemas.py | 1 -
superset/migrations/README | 2 +-
.../versions/21e88bc06c02_annotation_migration.py | 15 +++++-----
superset/queries/schemas.py | 1 -
superset/templates/appbuilder/baselayout.html | 1 -
.../templates/appbuilder/general/model/list.html | 2 +-
superset/templates/email/role_extended.txt | 2 +-
superset/templates/email/role_granted.txt | 2 +-
superset/templates/superset/basic.html | 6 ++--
superset/templates/superset/export_dashboards.html | 2 +-
.../fab_overrides/list_with_checkboxes.html | 1 -
.../form_view/csv_to_database_view/edit.html | 2 +-
.../form_view/excel_to_database_view/edit.html | 2 +-
superset/templates/superset/paper-theme.html | 2 +-
48 files changed, 106 insertions(+), 113 deletions(-)
diff --git a/.github/workflows/license-check.yml
b/.github/workflows/license-check.yml
index 5494dec..3c56903 100644
--- a/.github/workflows/license-check.yml
+++ b/.github/workflows/license-check.yml
@@ -19,7 +19,7 @@ jobs:
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
run: |
set -eo pipefail
- if [[ "${{github.event_name}}" != "pull_request" ]]; then
+ if [[ "${{github.event_name}}" != "pull_request" ]]; then
./scripts/fossa.sh
exit 0
fi
@@ -30,7 +30,7 @@ jobs:
cat<<EOF
CHANGED FILES:
$FILES
-
+
EOF
if [[ "${FILES}" =~ (.*package*\.json|requirements.*\.txt|setup\.py)
]]; then
diff --git a/.github/workflows/prefer_typescript.yml
b/.github/workflows/prefer_typescript.yml
index 2572ef3..d2fff6e 100644
--- a/.github/workflows/prefer_typescript.yml
+++ b/.github/workflows/prefer_typescript.yml
@@ -35,7 +35,7 @@ jobs:
with:
msg: |
### WARNING: Prefer TypeScript
-
+
Looks like your PR contains new `.js` or `.jsx` files:
```
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 22a6a0c..39b74e0 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -39,4 +39,5 @@ repos:
- id: check-docstring-first
- id: check-added-large-files
- id: check-yaml
+ exclude: ^helm/superset/templates/
- id: debug-statements
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 0640aec..bd0e1ea 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -705,7 +705,7 @@ See
[`superset-frontend/cypress_build.sh`](https://github.com/apache/incubator-s
### Storybook
-Superset includes a [Storybook](https://storybook.js.org/) to preview the
layout/styling of various Superset components, and variations thereof. To open
and view the Storybook:
+Superset includes a [Storybook](https://storybook.js.org/) to preview the
layout/styling of various Superset components, and variations thereof. To open
and view the Storybook:
```bash
cd superset-frontend
diff --git a/DISCLAIMER b/DISCLAIMER
index 3cf9282..10a3408 100644
--- a/DISCLAIMER
+++ b/DISCLAIMER
@@ -8,4 +8,4 @@ have stabilized in a manner consistent with other successful
ASF projects.
While incubation status is not necessarily a reflection of the completeness or
stability of the code, it does indicate that the project has yet to be fully
-endorsed by the ASF.
\ No newline at end of file
+endorsed by the ASF.
diff --git a/INTHEWILD.md b/INTHEWILD.md
index c716221..7ffa194 100644
--- a/INTHEWILD.md
+++ b/INTHEWILD.md
@@ -27,7 +27,7 @@ Join our growing community!
### Sharing Economy
-- [Airbnb](https://github.com/airbnb)
+- [Airbnb](https://github.com/airbnb)
- [Faasos](http://faasos.com/) [@shashanksingh]
- [Hostnfly](https://www.hostnfly.com/) [@alexisrosuel]
- [Lime](https://www.limebike.com/) [@cxmcc]
@@ -37,11 +37,11 @@ Join our growing community!
- [Aktia Bank plc](https://www.aktia.com) [@villebro]
- [American Express](https://www.americanexpress.com) [@TheLastSultan]
- [Capital Service S.A.](http://capitalservice.pl) [@pkonarzewski]
-- [Clark.de](http://clark.de/)
+- [Clark.de](http://clark.de/)
### Gaming
- [Digit Game Studios](https://www.digitgaming.com/)
-- [Popoko VM Games Studio](https://popoko.live)
+- [Popoko VM Games Studio](https://popoko.live)
### E-Commerce
- [AiHello](https://www.aihello.com) [@ganeshkrishnan1]
@@ -52,7 +52,7 @@ Join our growing community!
- [HuiShouBao](http://www.huishoubao.com/) [@Yukinoshita-Yukino]
- [Now](https://www.now.vn/) [@davidkohcw]
- [Qunar](https://www.qunar.com/) [@flametest]
-- [Rakuten Viki](https://www.viki.com)
+- [Rakuten Viki](https://www.viki.com)
- [Shopee](https://shopee.sg) [@xiaohanyu]
- [Shopkick](https://www.shopkick.com) [@LAlbertalli]
- [Tails.com](https://tails.com) [@alanmcruickshank]
@@ -66,25 +66,25 @@ Join our growing community!
- [Cloudsmith](https://cloudsmith.io) [@alancarson]
- [CnOvit](http://www.cnovit.com/) [@xieshaohu]
- [Deepomatic](https://deepomatic.com/) [@Zanoellia]
-- [Dial Once](https://www.dial-once.com/)
+- [Dial Once](https://www.dial-once.com/)
- [Dremio](https://dremio.com) [@narendrans]
- [ELMO Cloud HR & Payroll](https://elmosoftware.com.au/)
- [Endress+Hauser](http://www.endress.com/) [@rumbin]
-- [FBK - ICT center](http://ict.fbk.eu)
+- [FBK - ICT center](http://ict.fbk.eu)
- [GfK Data Lab](http://datalab.gfk.com) [@mherr]
- [GrowthSimple](https://growthsimple.ai/)
- [Intercom](https://www.intercom.com/) [@kate-gallo]
-- [jampp](https://jampp.com/)
+- [jampp](https://jampp.com/)
- [KonfĂo](http://konfio.mx) [@uis-rodriguez]
- [Myra Labs](http://www.myralabs.com/) [@viksit]
- [Nielsen](http://www.nielsen.com/) [@amitNielsen]
- [Ona](https://ona.io) [@pld]
- [Peak AI](https://www.peak.ai/) [@azhar22k]
- [PeopleDoc](https://www.people-doc.com) [@rodo]
-- [Preset, Inc.](https://preset.io)
+- [Preset, Inc.](https://preset.io)
- [Pronto Tools](http://www.prontotools.io) [@zkan]
- [PubNub](https://pubnub.com) [@jzucker2]
-- [Reward Gateway](https://www.rewardgateway.com)
+- [Reward Gateway](https://www.rewardgateway.com)
- [ScopeAI](https://www.getscopeai.com) [@iloveluce]
- [Showmax](https://tech.showmax.com) [@bobek]
- [source{d}](https://www.sourced.tech) [@marnovo]
@@ -102,11 +102,11 @@ Join our growing community!
- [Douban](https://www.douban.com/) [@luchuan]
- [Kuaishou](https://www.kuaishou.com/) [@zhaoyu89730105]
- [Netflix](https://www.netflix.com/)
-- [TME QQMUSIC/WESING](https://www.tencentmusic.com/)
+- [TME QQMUSIC/WESING](https://www.tencentmusic.com/)
- [Zaihang](http://www.zaih.com/)
### Education
-- [Brilliant.org](https://brilliant.org/)
+- [Brilliant.org](https://brilliant.org/)
- [Udemy](https://www.udemy.com/) [@sungjuly]
- [VIPKID](https://www.vipkid.com.cn/) [@illpanda]
@@ -120,14 +120,13 @@ Join our growing community!
- [Amino](https://amino.com) [@shkr]
- [Living Goods](https://www.livinggoods.org) [@chelule]
- [Maieutical Labs](https://maieuticallabs.it) [@xrmx]
-- [QPID Health](http://www.qpidhealth.com/)
+- [QPID Health](http://www.qpidhealth.com/)
- [TrustMedis](https://trustmedis.com) [@famasya]
- [WeSure](https://www.wesure.cn/)
### Others
- - [Grassroot](https://www.grassrootinstitute.org/)
+ - [Grassroot](https://www.grassrootinstitute.org/)
- [komoot](https://www.komoot.com/) [@christophlingg]
- - [Let's Roam](https://www.letsroam.com/)
- - [Twitter](https://twitter.com/)
- - [Yahoo!](https://yahoo.com/)
-
+ - [Let's Roam](https://www.letsroam.com/)
+ - [Twitter](https://twitter.com/)
+ - [Yahoo!](https://yahoo.com/)
diff --git a/LICENSE.txt b/LICENSE.txt
index bc58fdc..56313ab 100644
--- a/LICENSE.txt
+++ b/LICENSE.txt
@@ -213,4 +213,4 @@ Third party SIL Open Font License v1.1 (OFL-1.1)
========================================================================
(SIL OPEN FONT LICENSE Version 1.1) The Inter font family
(https://github.com/rsms/inter)
-(SIL OPEN FONT LICENSE Version 1.1) The Fira Code font family
(https://github.com/tonsky/FiraCode)
\ No newline at end of file
+(SIL OPEN FONT LICENSE Version 1.1) The Fira Code font family
(https://github.com/tonsky/FiraCode)
diff --git a/docker/README.md b/docker/README.md
index caed1a7..0579f10 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -19,7 +19,7 @@ under the License.
# Getting Started with Superset using Docker
-Docker is an easy way to get started with Superset.
+Docker is an easy way to get started with Superset.
## Prerequisites
@@ -28,8 +28,8 @@ Docker is an easy way to get started with Superset.
## Configuration
-The `/app/pythonpath` folder is mounted from
[./docker/pythonpath_dev](./docker/pythonpath_dev)
-which contains a base configuration
[./docker/pythonpath/superset_config.py](./docker/pythonpath/superset_config.py)
+The `/app/pythonpath` folder is mounted from
[./docker/pythonpath_dev](./docker/pythonpath_dev)
+which contains a base configuration
[./docker/pythonpath/superset_config.py](./docker/pythonpath/superset_config.py)
intended for use with local development.
### Local overrides
@@ -62,7 +62,7 @@ To run the container, simply run:
docker-compose up
```
-After several minutes for superset initialization to finish, you can open a
browser and view [`http://localhost:8088`](http://localhost:8088)
+After several minutes for superset initialization to finish, you can open a
browser and view [`http://localhost:8088`](http://localhost:8088)
to start your journey.
## Developing
diff --git a/docs/import_export_datasources.rst
b/docs/import_export_datasources.rst
index 9c786ce..29ebff6 100644
--- a/docs/import_export_datasources.rst
+++ b/docs/import_export_datasources.rst
@@ -122,4 +122,3 @@ by saving the following YAML to file and then running the
``import_datasources``
columns:
- column_name: ds
verbose_name: datetime
-
diff --git a/docs/security.rst b/docs/security.rst
index 29afdce..ca99457 100644
--- a/docs/security.rst
+++ b/docs/security.rst
@@ -159,21 +159,21 @@ permissions that were attributed.
Restricting access to a subset of a particular table
""""""""""""""""""""""""""""""""""""""""""""""""""""
-Using ``Row level security filters`` (under the ``Security`` menu) you can
create
-filters that are assigned to a particular table, as well as a set of roles.
-Say people in your finance department should only have access to rows where
-``department = "finance"``. You could create a ``Row level security filter``
-with that clause, and assign it to your ``Finance`` role, as well as the
+Using ``Row level security filters`` (under the ``Security`` menu) you can
create
+filters that are assigned to a particular table, as well as a set of roles.
+Say people in your finance department should only have access to rows where
+``department = "finance"``. You could create a ``Row level security filter``
+with that clause, and assign it to your ``Finance`` role, as well as the
applicable table.
-The ``clause`` field can contain arbitrary text which is then added to the
generated
-SQL statement's ``WHERE`` clause. So you could even do something like create
a
-filter for the last 30 days and apply it to a specific role, with a clause
like
-``date_field > DATE_SUB(NOW(), INTERVAL 30 DAY)``. It can also support
multiple
-conditions: ``client_id = 6 AND advertiser="foo"``, etc.
-
-All relevant ``Row level security filters`` will be ANDed together, so it's
-possible to create a situation where two roles conflict in such a way as to
-limit a table subset to empty. For example, the filters ``client_id=4`` and
-and ``client_id=5``, applied to a role, will result in users of that role
having
-``client_id=4 AND client_id=5`` added to their query, which can never be true.
\ No newline at end of file
+The ``clause`` field can contain arbitrary text which is then added to the
generated
+SQL statement's ``WHERE`` clause. So you could even do something like create a
+filter for the last 30 days and apply it to a specific role, with a clause like
+``date_field > DATE_SUB(NOW(), INTERVAL 30 DAY)``. It can also support
multiple
+conditions: ``client_id = 6 AND advertiser="foo"``, etc.
+
+All relevant ``Row level security filters`` will be ANDed together, so it's
+possible to create a situation where two roles conflict in such a way as to
+limit a table subset to empty. For example, the filters ``client_id=4`` and
+and ``client_id=5``, applied to a role, will result in users of that role
having
+``client_id=4 AND client_id=5`` added to their query, which can never be true.
diff --git a/helm/superset/requirements.yaml b/helm/superset/requirements.yaml
index 1f47d5a..60bcc42 100644
--- a/helm/superset/requirements.yaml
+++ b/helm/superset/requirements.yaml
@@ -22,4 +22,4 @@ dependencies:
- name: redis
version: 10.3.4
repository: https://kubernetes-charts.storage.googleapis.com/
- condition: redis.enabled
\ No newline at end of file
+ condition: redis.enabled
diff --git a/helm/superset/templates/secret-superset-config.yaml
b/helm/superset/templates/secret-superset-config.yaml
index 604bb20..281ad9c 100644
--- a/helm/superset/templates/secret-superset-config.yaml
+++ b/helm/superset/templates/secret-superset-config.yaml
@@ -24,7 +24,7 @@ metadata:
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
type: Opaque
-data:
+data:
superset_config.py: {{ include "superset-config" . | b64enc }}
superset_init.sh: {{ tpl .Values.init.initscript . | b64enc }}
superset_bootstrap.sh: {{ include "superset-bootstrap" . | b64enc }}
diff --git a/requirements-dev.txt b/requirements-dev.txt
index aaf6a99..d68a17b 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -39,4 +39,3 @@ tox==3.11.1
pillow==7.0.0
openpyxl==3.0.3 # Pandas use openpyxl to write excel format(using in unittes)
xlrd==1.2.0
-
diff --git a/scripts/permissions_cleanup.py b/scripts/permissions_cleanup.py
index 8c50cd0..c37d124 100644
--- a/scripts/permissions_cleanup.py
+++ b/scripts/permissions_cleanup.py
@@ -22,7 +22,7 @@ from superset import sm
def cleanup_permissions():
# 1. Clean up duplicates.
pvms = sm.get_session.query(sm.permissionview_model).all()
- print('# of permission view menues is: {}'.format(len(pvms)))
+ print("# of permission view menues is: {}".format(len(pvms)))
pvms_dict = defaultdict(list)
for pvm in pvms:
pvms_dict[(pvm.permission, pvm.view_menu)].append(pvm)
@@ -39,7 +39,7 @@ def cleanup_permissions():
sm.get_session.commit()
pvms = sm.get_session.query(sm.permissionview_model).all()
- print('STage 1: # of permission view menues is: {}'.format(len(pvms)))
+ print("STage 1: # of permission view menues is: {}".format(len(pvms)))
# 2. Clean up None permissions or view menues
pvms = sm.get_session.query(sm.permissionview_model).all()
@@ -49,7 +49,7 @@ def cleanup_permissions():
sm.get_session.commit()
pvms = sm.get_session.query(sm.permissionview_model).all()
- print('Stage 2: # of permission view menues is: {}'.format(len(pvms)))
+ print("Stage 2: # of permission view menues is: {}".format(len(pvms)))
# 3. Delete empty permission view menues from roles
roles = sm.get_session.query(sm.role_model).all()
diff --git a/superset-frontend/.storybook/main.js
b/superset-frontend/.storybook/main.js
index bb950c4..cf65d31 100644
--- a/superset-frontend/.storybook/main.js
+++ b/superset-frontend/.storybook/main.js
@@ -38,4 +38,4 @@ module.exports = {
},
plugins: [...config.plugins, ...customConfig.plugins],
}),
-};
\ No newline at end of file
+};
diff --git a/superset-frontend/.storybook/preview.jsx
b/superset-frontend/.storybook/preview.jsx
index ac0f4f8..ee86557 100644
--- a/superset-frontend/.storybook/preview.jsx
+++ b/superset-frontend/.storybook/preview.jsx
@@ -29,4 +29,4 @@ const themeDecorator = storyFn => (
);
addDecorator(jsxDecorator);
-addDecorator(themeDecorator);
\ No newline at end of file
+addDecorator(themeDecorator);
diff --git a/superset-frontend/fonts/FiraCode/specimen.less
b/superset-frontend/fonts/FiraCode/specimen.less
index 03d7b89..126496f 100644
--- a/superset-frontend/fonts/FiraCode/specimen.less
+++ b/superset-frontend/fonts/FiraCode/specimen.less
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+
@font-face {
font-family: 'Fira Code';
src: url('woff2/FiraCode-Light.woff2') format('woff2'),
diff --git a/superset-frontend/images/icons/cancel-x.svg
b/superset-frontend/images/icons/cancel-x.svg
index a1070fa..0f1e337 100644
--- a/superset-frontend/images/icons/cancel-x.svg
+++ b/superset-frontend/images/icons/cancel-x.svg
@@ -6,9 +6,9 @@
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -24,4 +24,4 @@
<polygon id="Shape" points="0 0 24 0 24 24 0 24"></polygon>
<path d="M15.71,8.29 C15.5222334,8.10068735 15.2666375,7.99420168
15,7.99420168 C14.7333625,7.99420168 14.4777666,8.10068735 14.29,8.29 L12,10.59
L9.71,8.29 C9.31787782,7.89787785 8.68212219,7.89787787 8.29000003,8.29000003
C7.89787787,8.68212219 7.89787785,9.31787782 8.29,9.71 L10.59,12 L8.29,14.29
C8.10068735,14.4777666 7.99420168,14.7333625 7.99420168,15
C7.99420168,15.2666375 8.10068735,15.5222334 8.29,15.71 C8.4777666,15.8993127
8.73336246,16.0057983 9,16.0057983 C9.26663754 [...]
</g>
-</svg>
\ No newline at end of file
+</svg>
diff --git a/superset-frontend/images/icons/checkbox-half.svg
b/superset-frontend/images/icons/checkbox-half.svg
index dd25b2b..50411b4 100644
--- a/superset-frontend/images/icons/checkbox-half.svg
+++ b/superset-frontend/images/icons/checkbox-half.svg
@@ -6,9 +6,9 @@
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
diff --git a/superset-frontend/images/icons/checkbox-off.svg
b/superset-frontend/images/icons/checkbox-off.svg
index f537e64..5835c18 100644
--- a/superset-frontend/images/icons/checkbox-off.svg
+++ b/superset-frontend/images/icons/checkbox-off.svg
@@ -6,9 +6,9 @@
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
diff --git a/superset-frontend/images/icons/checkbox-on.svg
b/superset-frontend/images/icons/checkbox-on.svg
index 1033e3a..25e82d5 100644
--- a/superset-frontend/images/icons/checkbox-on.svg
+++ b/superset-frontend/images/icons/checkbox-on.svg
@@ -6,9 +6,9 @@
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
diff --git a/superset-frontend/images/icons/compass.svg
b/superset-frontend/images/icons/compass.svg
index 3c0c7dc..7775d9b 100644
--- a/superset-frontend/images/icons/compass.svg
+++ b/superset-frontend/images/icons/compass.svg
@@ -6,9 +6,9 @@
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
diff --git a/superset-frontend/images/icons/dataset_physical.svg
b/superset-frontend/images/icons/dataset_physical.svg
index 72040e8..28f46bb 100644
--- a/superset-frontend/images/icons/dataset_physical.svg
+++ b/superset-frontend/images/icons/dataset_physical.svg
@@ -6,9 +6,9 @@
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
diff --git a/superset-frontend/images/icons/dataset_virtual.svg
b/superset-frontend/images/icons/dataset_virtual.svg
index 51f136c..ca15dcb 100644
--- a/superset-frontend/images/icons/dataset_virtual.svg
+++ b/superset-frontend/images/icons/dataset_virtual.svg
@@ -6,9 +6,9 @@
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
diff --git a/superset-frontend/images/icons/error.svg
b/superset-frontend/images/icons/error.svg
index 03c1962..b619c48 100644
--- a/superset-frontend/images/icons/error.svg
+++ b/superset-frontend/images/icons/error.svg
@@ -6,9 +6,9 @@
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
diff --git a/superset-frontend/images/icons/pencil.svg
b/superset-frontend/images/icons/pencil.svg
index 6d1cbcb..0cf5c92 100644
--- a/superset-frontend/images/icons/pencil.svg
+++ b/superset-frontend/images/icons/pencil.svg
@@ -6,9 +6,9 @@
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
diff --git a/superset-frontend/images/icons/search.svg
b/superset-frontend/images/icons/search.svg
index 2f2b0c5..5b86f13 100644
--- a/superset-frontend/images/icons/search.svg
+++ b/superset-frontend/images/icons/search.svg
@@ -6,9 +6,9 @@
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -26,4 +26,4 @@
<path d="M2.0502756,2.0502756 C4.64681622,-0.54626503
8.80843467,-0.6950204 11.5837364,1.70950589 C14.3590382,4.11403218
14.804545,8.25440896 12.6043062,11.1943062 L12.6043062,11.1943062
L12.584,11.214 L16.5643062,15.1943062 C16.7536188,15.3820728
16.8601045,15.6376686 16.8601045,15.9043062 C16.8601045,16.1709437
16.7536188,16.4265396 16.5643062,16.6143062 C16.3765396,16.8036188
16.1209437,16.9101045 15.8543062,16.9101045 C15.5876686,16.9101045
15.3320728,16.8036188 15.144306 [...]
</g>
</g>
-</svg>
\ No newline at end of file
+</svg>
diff --git a/superset-frontend/images/icons/sort-asc.svg
b/superset-frontend/images/icons/sort-asc.svg
index a6bd9d5..8981b6c 100644
--- a/superset-frontend/images/icons/sort-asc.svg
+++ b/superset-frontend/images/icons/sort-asc.svg
@@ -6,9 +6,9 @@
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
diff --git a/superset-frontend/images/icons/sort-desc.svg
b/superset-frontend/images/icons/sort-desc.svg
index f56b7b2..70dd0fa 100644
--- a/superset-frontend/images/icons/sort-desc.svg
+++ b/superset-frontend/images/icons/sort-desc.svg
@@ -6,9 +6,9 @@
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
diff --git a/superset-frontend/images/icons/sort.svg
b/superset-frontend/images/icons/sort.svg
index 534cffc..119ca02 100644
--- a/superset-frontend/images/icons/sort.svg
+++ b/superset-frontend/images/icons/sort.svg
@@ -6,9 +6,9 @@
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
diff --git a/superset-frontend/images/icons/trash.svg
b/superset-frontend/images/icons/trash.svg
index a80e191..870af73 100644
--- a/superset-frontend/images/icons/trash.svg
+++ b/superset-frontend/images/icons/trash.svg
@@ -6,9 +6,9 @@
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
diff --git a/superset-frontend/images/icons/warning.svg
b/superset-frontend/images/icons/warning.svg
index 9375f58..df7fc6d 100644
--- a/superset-frontend/images/icons/warning.svg
+++ b/superset-frontend/images/icons/warning.svg
@@ -6,9 +6,9 @@
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
diff --git a/superset-frontend/src/views/CRUD/dataset/DatasetList.tsx
b/superset-frontend/src/views/CRUD/dataset/DatasetList.tsx
index 0964a00..a9bebd7 100644
--- a/superset-frontend/src/views/CRUD/dataset/DatasetList.tsx
+++ b/superset-frontend/src/views/CRUD/dataset/DatasetList.tsx
@@ -623,10 +623,10 @@ const DatasetList: FunctionComponent<DatasetListProps> =
({
{datasetCurrentlyDeleting && (
<DeleteModal
description={t(
- `The dataset ${datasetCurrentlyDeleting.table_name} is
linked to
- ${datasetCurrentlyDeleting.chart_count} charts that appear
on
- ${datasetCurrentlyDeleting.dashboard_count} dashboards.
- Are you sure you want to continue? Deleting the dataset will
break
+ `The dataset ${datasetCurrentlyDeleting.table_name} is
linked to
+ ${datasetCurrentlyDeleting.chart_count} charts that appear on
+ ${datasetCurrentlyDeleting.dashboard_count} dashboards.
+ Are you sure you want to continue? Deleting the dataset will
break
those objects.`,
)}
onConfirm={() =>
diff --git a/superset/bin/superset b/superset/bin/superset
index 4b37e83..e7b8de6 100755
--- a/superset/bin/superset
+++ b/superset/bin/superset
@@ -17,5 +17,5 @@
# under the License.
from superset.cli import superset
-if __name__ == '__main__':
+if __name__ == "__main__":
superset()
diff --git a/superset/dashboards/schemas.py b/superset/dashboards/schemas.py
index 2587705..ca9c25c 100644
--- a/superset/dashboards/schemas.py
+++ b/superset/dashboards/schemas.py
@@ -75,7 +75,6 @@ openapi_spec_methods_override = {
"get": {"description": "Get a list of all possible owners for a
dashboard."}
},
}
-""" Overrides GET methods OpenApi descriptions """
def validate_json(value: Union[bytes, bytearray, str]) -> None:
diff --git a/superset/migrations/README b/superset/migrations/README
index 98e4f9c..2500aa1 100755
--- a/superset/migrations/README
+++ b/superset/migrations/README
@@ -1 +1 @@
-Generic single-database configuration.
\ No newline at end of file
+Generic single-database configuration.
diff --git a/superset/migrations/versions/21e88bc06c02_annotation_migration.py
b/superset/migrations/versions/21e88bc06c02_annotation_migration.py
index 919d047..5593af0 100644
--- a/superset/migrations/versions/21e88bc06c02_annotation_migration.py
+++ b/superset/migrations/versions/21e88bc06c02_annotation_migration.py
@@ -14,14 +14,6 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-import json
-
-from alembic import op
-from sqlalchemy import Column, Integer, or_, String, Text
-from sqlalchemy.ext.declarative import declarative_base
-
-from superset import db
-
"""migrate_old_annotation_layers
Revision ID: 21e88bc06c02
@@ -29,6 +21,13 @@ Revises: 67a6ac9b727b
Create Date: 2017-12-17 11:06:30.180267
"""
+import json
+
+from alembic import op
+from sqlalchemy import Column, Integer, or_, String, Text
+from sqlalchemy.ext.declarative import declarative_base
+
+from superset import db
# revision identifiers, used by Alembic.
revision = "21e88bc06c02"
diff --git a/superset/queries/schemas.py b/superset/queries/schemas.py
index 04c003e..daca322 100644
--- a/superset/queries/schemas.py
+++ b/superset/queries/schemas.py
@@ -25,4 +25,3 @@ openapi_spec_methods_override = {
}
},
}
-""" Overrides GET methods OpenApi descriptions """
diff --git a/superset/templates/appbuilder/baselayout.html
b/superset/templates/appbuilder/baselayout.html
index 1199ab1..a08a052 100644
--- a/superset/templates/appbuilder/baselayout.html
+++ b/superset/templates/appbuilder/baselayout.html
@@ -55,4 +55,3 @@
</footer>
{% endblock %}
{% endblock %}
-
diff --git a/superset/templates/appbuilder/general/model/list.html
b/superset/templates/appbuilder/general/model/list.html
index 49f08d0..866051d 100644
--- a/superset/templates/appbuilder/general/model/list.html
+++ b/superset/templates/appbuilder/general/model/list.html
@@ -33,4 +33,4 @@
</div>
{{ lib.panel_end() }}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/superset/templates/email/role_extended.txt
b/superset/templates/email/role_extended.txt
index 72eb337..89ba1b0 100644
--- a/superset/templates/email/role_extended.txt
+++ b/superset/templates/email/role_extended.txt
@@ -29,4 +29,4 @@ To see all your permissions please visit your
profile page</a>.
<br>
<br>
-Regards, Superset Admin.
\ No newline at end of file
+Regards, Superset Admin.
diff --git a/superset/templates/email/role_granted.txt
b/superset/templates/email/role_granted.txt
index a6ca9eb..8027f41 100644
--- a/superset/templates/email/role_granted.txt
+++ b/superset/templates/email/role_granted.txt
@@ -33,4 +33,4 @@ To see all your permissions please visit your
profile page</a>.
<br>
<br>
-Regards, Superset Admin.
\ No newline at end of file
+Regards, Superset Admin.
diff --git a/superset/templates/superset/basic.html
b/superset/templates/superset/basic.html
index a315746..163d948 100644
--- a/superset/templates/superset/basic.html
+++ b/superset/templates/superset/basic.html
@@ -36,10 +36,10 @@
{% block head_meta %}{% endblock %}
{% block head_css %}
{% for favicon in favicons %}
- <link
+ <link
rel="{{favicon.rel if favicon.rel else "icon"}}"
- type="{{favicon.type if favicon.type else "image/png"}}"
- {% if favicon.sizes %}sizes={{favicon.sizes}}{% endif %}
+ type="{{favicon.type if favicon.type else "image/png"}}"
+ {% if favicon.sizes %}sizes={{favicon.sizes}}{% endif %}
href="{{favicon.href}}"
>
{% endfor %}
diff --git a/superset/templates/superset/export_dashboards.html
b/superset/templates/superset/export_dashboards.html
index 5ec6ff1..9744424 100644
--- a/superset/templates/superset/export_dashboards.html
+++ b/superset/templates/superset/export_dashboards.html
@@ -27,7 +27,7 @@
a.click();
document.body.removeChild(a);
- window.location = '{{ dashboards_url }}';
+ window.location = '{{ dashboards_url }}';
};
</script>
diff --git
a/superset/templates/superset/fab_overrides/list_with_checkboxes.html
b/superset/templates/superset/fab_overrides/list_with_checkboxes.html
index 3d5fbaf..2cea530 100644
--- a/superset/templates/superset/fab_overrides/list_with_checkboxes.html
+++ b/superset/templates/superset/fab_overrides/list_with_checkboxes.html
@@ -97,4 +97,3 @@
</table>
</div>
{% endblock %}
-
diff --git
a/superset/templates/superset/form_view/csv_to_database_view/edit.html
b/superset/templates/superset/form_view/csv_to_database_view/edit.html
index 9e6e542..ab647d4 100644
--- a/superset/templates/superset/form_view/csv_to_database_view/edit.html
+++ b/superset/templates/superset/form_view/csv_to_database_view/edit.html
@@ -61,4 +61,4 @@
}
}
</script>
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git
a/superset/templates/superset/form_view/excel_to_database_view/edit.html
b/superset/templates/superset/form_view/excel_to_database_view/edit.html
index dcfd6d2..fb7c432 100644
--- a/superset/templates/superset/form_view/excel_to_database_view/edit.html
+++ b/superset/templates/superset/form_view/excel_to_database_view/edit.html
@@ -61,4 +61,4 @@
}
}
</script>
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/superset/templates/superset/paper-theme.html
b/superset/templates/superset/paper-theme.html
index edf5013..c4221be 100644
--- a/superset/templates/superset/paper-theme.html
+++ b/superset/templates/superset/paper-theme.html
@@ -431,7 +431,7 @@
<h1>Alerts</h1>
</div>
<div class="alert alert-success" role="alert">
- <strong>Well done!</strong> You successfully read this important alert
message. With a <a href="#">link</a>.
+ <strong>Well done!</strong> You successfully read this important alert
message. With a <a href="#">link</a>.
</div>
<div class="alert alert-info" role="alert">
<strong>Heads up!</strong> This alert needs your attention, but it's
not super important.