snirisl commented on issue #43176: URL: https://github.com/apache/airflow/issues/43176#issuecomment-2684245307
> Some ideas from [this blog post](https://medium.com/apache-airflow/mastering-airflow-dag-standardization-with-pythons-ast-a-deep-dive-into-linting-at-scale-1396771a9b90): > > * The DAG must not have top-level calls to expensive classes/services. > * The DAG object should be instantiated using a context manager. > * The DAG file name should match its `dag_id`. Thanks @Dev-iL for referencing my blog post 🙏 Another thing we can add is consider implementing a rule, adding to the third rule above, that dag id should be all lower case characters. Since DAG IDs should match the file names, enforcing this one is making sure DAG files to be compatible with the Python convention for file names. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
