How to create a new Expectation Suite using suite scaffold

This article is for comments to:

Please comment +1 if this How to is important to you.

Is there a way to create expectation based on current data profile using scaffold in python instead of the interactive cli? Would very much want to do it as an airflow job

You should be able to just use the boilerplate code that’s in the notebook when you run suite scaffold directly in an Airflow task! suite scaffoldcreates a new suite under the hood, so you’ll have to add that step to the code:

Could you report back here if that worked for you?