Skip to content

Commit 9131e49

Browse files
committed
restructure
1 parent 4550922 commit 9131e49

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

article/article.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,17 @@ dags/dummy.py
7979

8080
So we need to disable `E0401` check from `pylint`.
8181

82+
![flakeheaven disable import checks](https://github.com/iamtodor/github-actions-python-configuration-demo/blob/main/article/img/flakeheaven-disable-import-checks.png?raw=true)
83+
84+
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+
8286
Also, there is another possible solution to disable this check is to include `# noqa: E0401` into the import statement.
8387

8488
```python
8589
from airflow import DAG # noqa: E0401
8690
from airflow.operators.dummy_operator import DummyOperator # noqa: E0401
8791
```
8892

89-
![flakeheaven disable import checks](https://github.com/iamtodor/github-actions-python-configuration-demo/blob/main/article/img/flakeheaven-disable-import-checks.png?raw=true)
90-
91-
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-
9393
#### Tweaks for airflow code
9494

9595
To configure code for Airflow DAGs there are also a few tweaks. Here is the dummy example `dummy.py`.

0 commit comments

Comments
 (0)