nredd commented on issue #43176: URL: https://github.com/apache/airflow/issues/43176#issuecomment-4171620346
Hi @Lee-W @Dev-iL @zach-overflow, any recent updates on this? I'd love to get another batch of Airflow lint rules merged upstream to ruff. I checked the current [AIR ruff code](https://github.com/astral-sh/ruff/tree/main/crates/ruff_linter/src/rules/airflow/rules) and seems like most of the effort from the Airflow side is (understandably) in maintaining 3.x import/deprecation rules. IMO enforcing some (many) best practices / design methodology with more sophisticated ruff rules is a win for everyone. One potential rule I would like is: complain about DAGs with a dynamic `start_date` e.g. `start_date=datetime.now()`. We had a bunch of different DAG templates using a dynamic start date--and it was causing noticeable DAG scheduling pressure in our work instance! It's mentioned in the [docs here](https://airflow.apache.org/docs/apache-airflow/stable/faq.html#what-s-the-deal-with-start-date) about why this is a No-no. Part of me is unsure if this is enough to justify a lint rule specifically for it, but I'm eager to hear other opinions. -- 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]
