anaconda / anaconda-project

Tool for encapsulating, running, and reproducing data science projects
https://anaconda-project.readthedocs.io/en/latest/
Other
217 stars 88 forks source link

[ENH] read .env file for environment variables #347

Open AlbertDeFusco opened 2 years ago

AlbertDeFusco commented 2 years ago

Currently a user can define local values of variables defined the anaconda-project.yml file in a file called anaconda-project-local.yml. It seems reasonable to also support a more standard approach with a .env file in the project directory.

Does anyone reading this have a strong opinion about which one would take precedence if both a .env and anaconda-project-local.yml file are present?

jbednar commented 2 years ago

I would think anaconda-project-local.yml would take precedence, as it's the one more specific to a-p, and the most specific should normally be the final word (and the least used).

Should the title be read .env file for environment variables?