Make airflow/migrations/env.py Pylint Compatible (#9670)
This commit is contained in:
Родитель
7a4988a3c7
Коммит
c353fed81a
|
@ -21,7 +21,7 @@ from logging.config import fileConfig
|
|||
from alembic import context
|
||||
|
||||
from airflow import models, settings
|
||||
from airflow.models.serialized_dag import SerializedDagModel # noqa
|
||||
from airflow.models.serialized_dag import SerializedDagModel # pylint: disable=unused-import # noqa
|
||||
|
||||
|
||||
def include_object(_, name, type_, *args):
|
||||
|
|
2
pylintrc
2
pylintrc
|
@ -276,7 +276,7 @@ ignored-classes=optparse.Values,thread._local,_thread._local,sqlalchemy.orm.scop
|
|||
# (useful for modules/projects where namespaces are manipulated during runtime
|
||||
# and thus existing member attributes cannot be deduced by static analysis. It
|
||||
# supports qualified module names, as well as Unix pattern matching.
|
||||
ignored-modules=alembic.op
|
||||
ignored-modules=alembic.op,alembic.context
|
||||
|
||||
# Show a hint with possible names when a member name was not found. The aspect
|
||||
# of finding the hint is based on edit distance.
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
./airflow/configuration.py
|
||||
./airflow/macros/hive.py
|
||||
./airflow/migrations/env.py
|
||||
./airflow/models/crypto.py
|
||||
./airflow/models/dag.py
|
||||
./airflow/models/dagrun.py
|
||||
|
|
Загрузка…
Ссылка в новой задаче