chore: pre-commit run --all-files (#10500)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
parent
ce10e13ec3
commit
821916a681
|
|
@ -39,4 +39,5 @@ repos:
|
|||
- id: check-docstring-first
|
||||
- id: check-added-large-files
|
||||
- id: check-yaml
|
||||
exclude: ^helm/superset/templates/
|
||||
- id: debug-statements
|
||||
|
|
|
|||
|
|
@ -130,4 +130,3 @@ Join our growing community!
|
|||
- [Let's Roam](https://www.letsroam.com/)
|
||||
- [Twitter](https://twitter.com/)
|
||||
- [Yahoo!](https://yahoo.com/)
|
||||
|
||||
|
|
|
|||
|
|
@ -122,4 +122,3 @@ by saving the following YAML to file and then running the ``import_datasources``
|
|||
columns:
|
||||
- column_name: ds
|
||||
verbose_name: datetime
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -17,5 +17,5 @@
|
|||
# under the License.
|
||||
from superset.cli import superset
|
||||
|
||||
if __name__ == '__main__':
|
||||
if __name__ == "__main__":
|
||||
superset()
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -25,4 +25,3 @@ openapi_spec_methods_override = {
|
|||
}
|
||||
},
|
||||
}
|
||||
""" Overrides GET methods OpenApi descriptions """
|
||||
|
|
|
|||
|
|
@ -55,4 +55,3 @@
|
|||
</footer>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
|||
|
|
@ -97,4 +97,3 @@
|
|||
</table>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue