diff --git a/airflow/migrations/env.py b/airflow/migrations/env.py index e55e1dd2cf907..2230724eb1a45 100644 --- a/airflow/migrations/env.py +++ b/airflow/migrations/env.py @@ -21,7 +21,7 @@ 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): diff --git a/pylintrc b/pylintrc index 938c4fdd34d74..43f9658af0bf9 100644 --- a/pylintrc +++ b/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. diff --git a/scripts/ci/pylint_todo.txt b/scripts/ci/pylint_todo.txt index 42adffafc3149..66e411810bc9d 100644 --- a/scripts/ci/pylint_todo.txt +++ b/scripts/ci/pylint_todo.txt @@ -1,7 +1,6 @@ ./airflow/configuration.py ./airflow/logging_config.py ./airflow/macros/hive.py -./airflow/migrations/env.py ./airflow/models/crypto.py ./airflow/models/dag.py ./airflow/models/dagbag.py