You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We assume that the developer who writes the code and imports the libs is responsible for the writing reliable tests. So if the test does not pass it means that it's something with import or a code (logic) itself. Import check is not something we would like to put as a linter job.
85
+
82
86
Also, there is another possible solution to disable this check is to include `# noqa: E0401` into the import statement.
83
87
84
88
```python
85
89
from airflow importDAG# noqa: E0401
86
90
from airflow.operators.dummy_operator import DummyOperator # noqa: E0401
We assume that the developer who writes the code and imports the libs is responsible for the writing reliable tests. So if the test does not pass it means that it's something with import or a code (logic) itself. Import check is not something we would like to put as a linter job.
92
-
93
93
#### Tweaks for airflow code
94
94
95
95
To configure code for Airflow DAGs there are also a few tweaks. Here is the dummy example `dummy.py`.
0 commit comments