Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/uranusjr/airflow2to3

Command line tool to get DAG files ready for the Airflow 3 upgrade
https://github.com/uranusjr/airflow2to3

Last synced: about 1 month ago
JSON representation

Command line tool to get DAG files ready for the Airflow 3 upgrade

Awesome Lists containing this project

README

        

# airflow2to3

This is a command line program that rewrites Airflow DAG files to be compatible
with Airflow 3, so users can upgrade more smoothly.

Example usage:

```console
$ airflow2to3 --select AIR301 -- path/to/dag.py
```

The `--select` flag takes a comma-separated codes for the tool to fix. The
codes are from [Ruff's Airflow rules] with the `AIR` prefix removed.

We only implement 2-to-3 rules with code 3xx.

[Ruff's Airflow rules]: https://docs.astral.sh/ruff/rules/#airflow-air