chore: pre-commit run --all-files (#10500)

Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
John Bodley 2020-08-02 14:32:17 -07:00 committed by GitHub
parent ce10e13ec3
commit 821916a681
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
48 changed files with 105 additions and 112 deletions

View File

@ -39,4 +39,5 @@ repos:
- id: check-docstring-first
- id: check-added-large-files
- id: check-yaml
exclude: ^helm/superset/templates/
- id: debug-statements

View File

@ -130,4 +130,3 @@ Join our growing community!
- [Let's Roam](https://www.letsroam.com/)
- [Twitter](https://twitter.com/)
- [Yahoo!](https://yahoo.com/)

View File

@ -122,4 +122,3 @@ by saving the following YAML to file and then running the ``import_datasources``
columns:
- column_name: ds
verbose_name: datetime

View File

@ -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

View File

@ -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()

View File

@ -17,5 +17,5 @@
# under the License.
from superset.cli import superset
if __name__ == '__main__':
if __name__ == "__main__":
superset()

View File

@ -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:

View File

@ -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"

View File

@ -25,4 +25,3 @@ openapi_spec_methods_override = {
}
},
}
""" Overrides GET methods OpenApi descriptions """

View File

@ -55,4 +55,3 @@
</footer>
{% endblock %}
{% endblock %}

View File

@ -97,4 +97,3 @@
</table>
</div>
{% endblock %}