poetry cache clear --all pypi
poetry update
poetry install --all-extrasThis project uses pre-commit to enforce code quality and consistency. To install the pre-commit hooks, run the following command:
poetry run pre-commit install- Create a new directory in the
templatedirectory with the name of the template. - Add the necessary files and directories to the new template directory.
init/sql: Directory for storing SQL scripts that will be executed when the workspace is initialized.
Example:
├── templates/
└─ template-name/
└─ init/
└─ sql/
├─ 0_create_user_table.sql
└─ 1_insert_sample_data.sql
In the above example, the SQL scripts will be executed in the order specified by the prefix number.
If the SQL scripts are not prefixed with numbers, they will be executed in random order.
NB!) In Morph cloud environment, init directory will be deleted soon after the scripts are executed.