Create a new conda environment with the following command:
conda create --name env_name python=3.10
conda activate env_nameThen install the poetry package inside the environment with:
pip install poetryand then install all the requirements with:
poetry installNow you can run the repository with:
python src/ts_train/main.pyPre-commit hooks run all the auto-formatters (black), type checker (mypy), and a linter (ruff). These tools are used to be sure that the changeset is in good shape before a commit/push happens.
You can install the hooks with (runs for each commit):
pre-commit installOr if you want them to run only for each push:
pre-commit install -t pre-pushOr if you want e.g. want to run all checks manually for all files:
pre-commit run --all-filesThe Makefile is a file used in software development projects to automate various tasks and streamline the build process. To use the Makefile, simply run the make command followed by the name of the target or rule specified in the Makefile.
In our new repository, we have included a special command in the Makefile called check that allows you to run all the steps of the CI/CD pipeline offline. This command is designed to save time by executing the necessary tasks locally before pushing the code. By running make check, you can perform all the necessary checks without triggering the entire CI/CD pipeline.
You can using before every push by calling:
make checkThere are two commands into the Makefile thats help with dockerfile interaction:
make docker_buildthis command generate the requirements.txt and then build the dockerfile```
make explore_dockerthis command allow you to run the docker container with interaction mode.