Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/uranusjr/airflow2to3
- Owner: uranusjr
- License: mit
- Created: 2024-11-19T20:00:57.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-19T20:08:18.000Z (about 2 months ago)
- Last Synced: 2024-11-19T21:19:26.412Z (about 2 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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