(current: VersionInfo, bump_type: BumpType)
| 32 | |
| 33 | |
| 34 | def _get_bumped_version(current: VersionInfo, bump_type: BumpType) -> VersionInfo: |
| 35 | if bump_type == BumpType.MAJOR: |
| 36 | return current.next_version("major") |
| 37 | |
| 38 | if bump_type == BumpType.MINOR: |
| 39 | return current.next_version("minor") |
| 40 | |
| 41 | if bump_type == BumpType.PATCH: |
| 42 | return current.next_version("patch") |
| 43 | |
| 44 | if bump_type == BumpType.PRE: |
| 45 | return current.next_version("prerelease") |
| 46 | |
| 47 | return current.bump_build(token="post") |
| 48 | |
| 49 | |
| 50 | def _skip(file: Path) -> bool: |
no outgoing calls
no test coverage detected
searching dependent graphs…