pub struct GlobalConfigFinalized {Show 23 fields
pub allow_dirty: bool,
pub current_version: Option<String>,
pub parse_version_pattern: Regex,
pub serialize_version_patterns: Vec<PythonFormatString>,
pub search: RegexTemplate,
pub replace: String,
pub no_configured_files: bool,
pub ignore_missing_files: bool,
pub ignore_missing_version: bool,
pub dry_run: bool,
pub commit: bool,
pub tag: bool,
pub sign_tags: bool,
pub tag_name: PythonFormatString,
pub tag_message: PythonFormatString,
pub commit_message: PythonFormatString,
pub commit_args: Option<String>,
pub setup_hooks: Vec<String>,
pub pre_commit_hooks: Vec<String>,
pub post_commit_hooks: Vec<String>,
pub included_paths: Option<Vec<PathBuf>>,
pub excluded_paths: Option<Vec<PathBuf>>,
pub additional_files: Option<Vec<PathBuf>>,
}Expand description
Global configuration with defaults applied.
Fields§
§allow_dirty: boolDon’t abort if working directory is dirty
current_version: Option<String>Version that needs to be updated
parse_version_pattern: RegexRegex parsing the version string
serialize_version_patterns: Vec<PythonFormatString>How to serialize back to a version
search: RegexTemplateTemplate for complete string to search
replace: StringTemplate for complete string to replace
no_configured_files: boolOnly replace the version in files specified on the command line.
When enabled, the files from the configuration file are ignored
ignore_missing_files: boolIgnore any missing files when searching and replacing in files
ignore_missing_version: boolIgnore any missing version when searching and replacing in files
dry_run: boolDon’t write any files, just pretend
commit: boolCommit to version control
tag: boolCreate a tag in version control
Sign tags if created
tag_name: PythonFormatStringTag name (only works with –tag)
tag_message: PythonFormatStringTag message
commit_message: PythonFormatStringCommit message
commit_args: Option<String>Extra arguments to commit command
setup_hooks: Vec<String>Setup hooks
pre_commit_hooks: Vec<String>Pre-commit hooks
post_commit_hooks: Vec<String>Post-commit hooks
included_paths: Option<Vec<PathBuf>>Included paths
excluded_paths: Option<Vec<PathBuf>>Excluded paths
additional_files: Option<Vec<PathBuf>>Additional files to add.
This is useful for files such as lockfiles, which should be regenerated after the version bump in a pre-commit hook.
Trait Implementations§
Source§impl Clone for GlobalConfigFinalized
impl Clone for GlobalConfigFinalized
Source§fn clone(&self) -> GlobalConfigFinalized
fn clone(&self) -> GlobalConfigFinalized
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GlobalConfigFinalized
impl Debug for GlobalConfigFinalized
Source§impl Default for GlobalConfigFinalized
impl Default for GlobalConfigFinalized
Source§impl Hash for GlobalConfigFinalized
impl Hash for GlobalConfigFinalized
Source§impl Ord for GlobalConfigFinalized
impl Ord for GlobalConfigFinalized
Source§fn cmp(&self, other: &GlobalConfigFinalized) -> Ordering
fn cmp(&self, other: &GlobalConfigFinalized) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for GlobalConfigFinalized
impl PartialEq for GlobalConfigFinalized
Source§impl PartialOrd for GlobalConfigFinalized
impl PartialOrd for GlobalConfigFinalized
impl Eq for GlobalConfigFinalized
impl StructuralPartialEq for GlobalConfigFinalized
Auto Trait Implementations§
impl Freeze for GlobalConfigFinalized
impl RefUnwindSafe for GlobalConfigFinalized
impl Send for GlobalConfigFinalized
impl Sync for GlobalConfigFinalized
impl Unpin for GlobalConfigFinalized
impl UnwindSafe for GlobalConfigFinalized
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.