mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
fix: enable several pylint rules partially in db_engines_specs module (#11000)
* Enabled mssql * Enabling pylint rules in `mysql.py` from `db_engine_specs`: - added variable to shorten line and enable `line-too-long` - `import-error` seems not prompting anymore - specified exception instead broad-except * Refactored too long line in `oracle.py` from `db_engine_specs`. Enabled too-long-line pylint rule. * Changed fstring into string `pinot.py` to reenable `f-string-without-interpolation` rule. * Enabled `unused-import` rule and changed line to adjust to correct number of characters in `db_engine_specs/postgres.py`. * Enabled unused-import pylint check in `db_engine_specs/presto.py` * Enabled unused-import pylint check in `db_engine_specs/snowflake.py` * Enabled unused-import pylint check in `db_engine_specs/sqlite.py`
This commit is contained in:
@@ -25,7 +25,7 @@ from superset.db_engine_specs.postgres import PostgresBaseEngineSpec
|
||||
from superset.utils import core as utils
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from superset.models.core import Database # pylint: disable=unused-import
|
||||
from superset.models.core import Database
|
||||
|
||||
|
||||
class SnowflakeEngineSpec(PostgresBaseEngineSpec):
|
||||
|
||||
Reference in New Issue
Block a user