To create your conda environment
conda env create -f environment.yml
To export your conda environment (remeber to do this if you change the packages)
conda env export | grep -v "^prefix: " > environment.yml
If you notice that your file doesn't commit the first time, this is because it failed the linting or formating step. Re-stage your files and commit them again, if that fails edit your code to pass the coding guidelines.