Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flake8] Adding flake8-coding #4477

Merged
merged 1 commit into from
Feb 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions scripts/permissions_cleanup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
Expand Down
1 change: 1 addition & 0 deletions superset/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Package's main module!"""
from __future__ import absolute_import
from __future__ import division
Expand Down
1 change: 1 addition & 0 deletions superset/cache_util.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
Expand Down
1 change: 1 addition & 0 deletions superset/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
Expand Down
1 change: 1 addition & 0 deletions superset/config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""The main config file for Superset

All configuration in this file can be overridden by providing a superset_config
Expand Down
1 change: 1 addition & 0 deletions superset/connectors/base/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
Expand Down
1 change: 1 addition & 0 deletions superset/connectors/base/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
Expand Down
1 change: 1 addition & 0 deletions superset/connectors/connector_registry.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
Expand Down
1 change: 1 addition & 0 deletions superset/connectors/druid/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# -*- coding: utf-8 -*-
from . import models # noqa
from . import views # noqa
1 change: 1 addition & 0 deletions superset/connectors/druid/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
# pylint: disable=invalid-unary-operand-type
from __future__ import absolute_import
from __future__ import division
Expand Down
1 change: 1 addition & 0 deletions superset/connectors/druid/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
Expand Down
1 change: 1 addition & 0 deletions superset/connectors/sqla/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# -*- coding: utf-8 -*-
from . import models # noqa
from . import views # noqa
1 change: 1 addition & 0 deletions superset/connectors/sqla/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
Expand Down
1 change: 1 addition & 0 deletions superset/connectors/sqla/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Views used by the SqlAlchemy connector"""
from __future__ import absolute_import
from __future__ import division
Expand Down
1 change: 1 addition & 0 deletions superset/dataframe.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" Superset wrapper around pandas.DataFrame.

TODO(bkyryliuk): add support for the conventions like: *_dim or dim_*
Expand Down
1 change: 1 addition & 0 deletions superset/db_engine_specs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Compatibility layer for different database engines

This modules stores logic specific to different database engines. Things
Expand Down
1 change: 1 addition & 0 deletions superset/db_engines/hive.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
Expand Down
1 change: 1 addition & 0 deletions superset/db_engines/presto.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
Expand Down
1 change: 1 addition & 0 deletions superset/dict_import_export_util.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
Expand Down
1 change: 1 addition & 0 deletions superset/forms.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Contains the logic to create cohesive forms on the explore view"""
from __future__ import absolute_import
from __future__ import division
Expand Down
1 change: 1 addition & 0 deletions superset/import_util.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
Expand Down
1 change: 1 addition & 0 deletions superset/jinja_context.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Defines the templating context for SQL Lab"""
from __future__ import absolute_import
from __future__ import division
Expand Down
1 change: 1 addition & 0 deletions superset/legacy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Code related with dealing with legacy / change management"""
from __future__ import absolute_import
from __future__ import division
Expand Down
1 change: 1 addition & 0 deletions superset/migrations/env.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import with_statement

import logging
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Fix wrong constraint on table columns

Revision ID: 1226819ee0e3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Adds params to the datasource (druid) table

Revision ID: 1296d28ec131
Expand Down
1 change: 1 addition & 0 deletions superset/migrations/versions/12d55656cbca_is_featured.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""is_featured

Revision ID: 12d55656cbca
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""making audit nullable

Revision ID: 18e88e1cc004
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Adding metric warning_text

Revision ID: 19a814813610
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""adding slug to dash

Revision ID: 1a48a5411020
Expand Down
1 change: 1 addition & 0 deletions superset/migrations/versions/1d2ddd543133_log_dt.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""log dt

Revision ID: 1d2ddd543133
Expand Down
1 change: 1 addition & 0 deletions superset/migrations/versions/1e2841a4128_.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""empty message

Revision ID: 1e2841a4128
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import json

from alembic import op
Expand Down
1 change: 1 addition & 0 deletions superset/migrations/versions/2591d77e9831_user_id.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""user_id

Revision ID: 2591d77e9831
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Make creator owners

Revision ID: 27ae655e4247
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Add encrypted password field

Revision ID: 289ce07647b
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""TZ offsets in data sources

Revision ID: 2929af7925ed
Expand Down
5 changes: 3 additions & 2 deletions superset/migrations/versions/2fcdcb35e487_saved_queries.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""saved_queries

Revision ID: 2fcdcb35e487
Expand Down Expand Up @@ -30,8 +31,8 @@ def upgrade():
sa.Column('created_by_fk', sa.Integer(), nullable=True),
sa.ForeignKeyConstraint(['changed_by_fk'], ['ab_user.id'], ),
sa.ForeignKeyConstraint(['created_by_fk'], ['ab_user.id'], ),
sa.ForeignKeyConstraint(['user_id'], [u'ab_user.id'], ),
sa.ForeignKeyConstraint(['db_id'], [u'dbs.id'], ),
sa.ForeignKeyConstraint(['user_id'], ['ab_user.id'], ),
sa.ForeignKeyConstraint(['db_id'], ['dbs.id'], ),
sa.PrimaryKeyConstraint('id')
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""adding log model

Revision ID: 315b3f4da9b0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from alembic import op
import sqlalchemy as sa
from superset import db
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Sync DB with the models.py.

Sqlite doesn't support alter on tables, that's why most of the operations
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""add_sql_string_to_table

Revision ID: 3c3ffe173e4f
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""database options for sql lab

Revision ID: 41f6a59a61f2
Expand Down
1 change: 1 addition & 0 deletions superset/migrations/versions/430039611635_log_more.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""log more

Revision ID: 430039611635
Expand Down
1 change: 1 addition & 0 deletions superset/migrations/versions/43df8de3a5f4_dash_json.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""empty message

Revision ID: 43df8de3a5f4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""allow_run_sync_async

Revision ID: 4500485bde7d
Expand Down
1 change: 1 addition & 0 deletions superset/migrations/versions/472d2f73dfd4_.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""empty message

Revision ID: 472d2f73dfd4
Expand Down
1 change: 1 addition & 0 deletions superset/migrations/versions/4736ec66ce19_.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""empty message

Revision ID: 4736ec66ce19
Expand Down
1 change: 1 addition & 0 deletions superset/migrations/versions/4e6a06bad7a8_init.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Init

Revision ID: 4e6a06bad7a8
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""owners_many_to_many

Revision ID: 4fa88fe24e94
Expand All @@ -19,16 +20,16 @@ def upgrade():
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('user_id', sa.Integer(), nullable=True),
sa.Column('dashboard_id', sa.Integer(), nullable=True),
sa.ForeignKeyConstraint(['dashboard_id'], [u'dashboards.id'], ),
sa.ForeignKeyConstraint(['user_id'], [u'ab_user.id'], ),
sa.ForeignKeyConstraint(['dashboard_id'], ['dashboards.id'], ),
sa.ForeignKeyConstraint(['user_id'], ['ab_user.id'], ),
sa.PrimaryKeyConstraint('id'),
)
op.create_table('slice_user',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('user_id', sa.Integer(), nullable=True),
sa.Column('slice_id', sa.Integer(), nullable=True),
sa.ForeignKeyConstraint(['slice_id'], [u'slices.id'], ),
sa.ForeignKeyConstraint(['user_id'], [u'ab_user.id'], ),
sa.ForeignKeyConstraint(['slice_id'], ['slices.id'], ),
sa.ForeignKeyConstraint(['user_id'], ['ab_user.id'], ),
sa.PrimaryKeyConstraint('id'),
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""log_this_plus

Revision ID: 525c854f0005
Expand Down
1 change: 1 addition & 0 deletions superset/migrations/versions/55179c7f25c7_sqla_descr.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""sqla_descr

Revision ID: 55179c7f25c7
Expand Down
1 change: 1 addition & 0 deletions superset/migrations/versions/5a7bad26f2a7_.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""empty message

Revision ID: 5a7bad26f2a7
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Add access_request table to manage requests to access datastores.

Revision ID: 5e4a03ef0bf0
Expand Down
1 change: 1 addition & 0 deletions superset/migrations/versions/6414e83d82b7_.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""empty message

Revision ID: 6414e83d82b7
Expand Down
1 change: 1 addition & 0 deletions superset/migrations/versions/65903709c321_allow_dml.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""allow_dml

Revision ID: 65903709c321
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""update_spatial_params

Revision ID: 67a6ac9b727b
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""add fetch values predicate

Revision ID: 732f1c06bcbf
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""fixing audit fk

Revision ID: 763d4b211ec9
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""empty message

Revision ID: 7dbf98566af7
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""results_key to query

Revision ID: 7e3ddad2a00b
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""cache_timeouts

Revision ID: 836c0bf75904
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Adding extra field to Database model

Revision ID: 867bf4f117f9
Expand Down
1 change: 1 addition & 0 deletions superset/migrations/versions/8e80a26a31db_.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""empty message

Revision ID: 8e80a26a31db
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""adjusting key length

Revision ID: 956a063c52b3
Expand Down
1 change: 1 addition & 0 deletions superset/migrations/versions/960c69cb1f5b_.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""add dttm_format related fields in table_columns

Revision ID: 960c69cb1f5b
Expand Down
1 change: 1 addition & 0 deletions superset/migrations/versions/979c03af3341_.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""empty message

Revision ID: 979c03af3341
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""adding favstar model

Revision ID: a2d606a761d9
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""add_result_backend_time_logging

Revision ID: a65458420354
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""query.start_running_time

Revision ID: a6c18f869a4e
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""rewriting url from shortner with new format

Revision ID: a99f2f7c195a
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""add impersonate_user to dbs

Revision ID: a9c47e2c1547
Expand Down
Loading