Airflow project to execute Recisnap pipelines to train our CNN and create new materials.
Download the Astro CLI to run Airflow locally in Docker. astro
is the only package you will need to install.
- Run
git clone https://github.com/TJaniF/astronomer-codespaces-test.git
on your computer to create a local clone of this repository. - Install the Astro CLI by following the steps in the Astro CLI documentation. The main prerequisite is Docker Desktop/Docker Engine but no Docker knowledge is needed to run Airflow with the Astro CLI.
- Run
astro dev start
in your cloned repository. - After your Astro project has started. View the Airflow UI at
localhost:8080
.
After cloning the repo, you should run the following command in order to add the pre-commit hook to git:
pre-commit install
If you don't have pre-commit installed you can do it by running:
pip install pre-commit
Now, whenever you try making a commit, the pre-commit hook will run automatically before that. If every step passes, the commit will proceed as usual. If any of the pre-commit steps fails, the commit won't be executed.
In the case where the failure was just because there was a formatting problem that got fixed automatically during the pre-commit, you can try committing again and the commit should proceed as usual.
But if there was a step that required manual changes, you must fix them before being able to continue with the commit.
If you want to just execute the pre-commit steps, you can run the command:
pre-commit run --all-files