https://pantsbuild.org/ logo
#welcome
Title
# welcome
c

crooked-country-1937

08/08/2022, 5:00 AM
Hi all! I am Aditya, data engineer at Tunein. Looking at Pants for managing our airflow/data-pipeline python codebase. Has anyone experience with pants + Airflow?
👋 3
b

bored-energy-25252

08/08/2022, 5:17 AM
There are github repos using pants and Airflow.
c

crooked-country-1937

08/08/2022, 5:30 AM
Thanks! My search got me this one: https://github.com/mingshi-wang/airflow-pants-example Its useful. The thing which is tricking me is testing. Basically, I have test like this:
Copy code
import pytest
from airflow.models import DagBag

def test_no_import_errors():
    dag_bag = DagBag(
        dag_folder="src/airflow-dags/tunein/dags",
        include_examples=False,
        read_dags_from_db=False
    )
    assert dag_bag.size() > 0, "Loaded dags"
    assert len(dag_bag.import_errors) == 0, "No Import Failures"
h

happy-kitchen-89482

08/08/2022, 12:23 PM
Welcome, happy to help with your evaluation. I believe several teams are using Pants with Airflow.
c

crooked-country-1937

08/09/2022, 7:01 AM
thanks! Currently navigating pants doc. Will post in #general for any issues I come across
👍 1