Configuration¶
Bump My Version looks in three places for configuration information (in order of precedence):
- command line
- configuration file
- environment variables
Configuration files¶
Bump My Version looks in four places for the configuration file to parse (in order of precedence):
--config-file <FILE>(command line argument)BUMPVERSION_CONFIG_FILE=file(environment variable).bumpversion.cfg(legacy).bumpversion.tomlsetup.cfg(legacy)pyproject.toml
.toml files are recommended. We will likely drop support for ini-style formats in the future. You should add your configuration file to your source code management system.
By using a configuration file, you no longer need to specify those options on the command line. The configuration file also allows greater flexibility in specifying how files are modified.