models
Bump My Version configuration models.
Classes¶
Config
¶
FileChange
¶
Bases: BaseModel
A change to make to a file.
Methods:¶
get_search_pattern
¶
get_search_pattern(context: MutableMapping) -> Tuple[re.Pattern, str]
Render the search pattern and return the compiled regex pattern and the raw pattern.
| PARAMETER | DESCRIPTION |
|---|---|
context
|
The context to use for rendering the search pattern
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Tuple[Pattern, str]
|
A tuple of the compiled regex pattern and the raw pattern as a string. |
PEP621Info
dataclass
¶
PEP621Info(version: Optional[str])
PEP 621 info, in particular, the static version number.