I am an amateur developper and would like to share some of my code via GitHub or GitLabs.
The problem I am trying to resolve is that I have a configuration file with my real credentials (used during development) and would like to provide a generic one (with placehholders for the credentials) -- all this without changing the code.
In practical terms I have today (in pseudo-code)
arguments = yaml.read("configuration.yaml") and would like to avoid dragging a
# do not forget to switch the config files before pushing to github arguments = yaml.read("configuration-dev.yaml") #arguments = yaml.read("configuration.yaml") Is there an established method for such issues? (generally speaking - elements in code which are specific to an installation, but with the need to send generic/placeholder entries)
Note: I am mostly developping in Python if it makes an approach easier