Skip to content

Commit

Permalink
Make formatting match DS
Browse files Browse the repository at this point in the history
  • Loading branch information
loadams committed Oct 6, 2023
1 parent 7b35636 commit ea0ebd7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
14 changes: 9 additions & 5 deletions release/bump_patch_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,19 @@

parser = argparse.ArgumentParser()

parser.add_argument("--current_version",
type=str,
help="The current version being published to help set the next version.")
parser.add_argument(
"--current_version",
type=str,
help="The current version being published to help set the next version.")

args = parser.parse_args()

current_version = pkg_version.parse(args.current_version)

with open('./version.txt', 'w') as fd:
fd.write(f'{current_version.major}.{current_version.minor}.{current_version.micro + 1}\n')
fd.write(
f'{current_version.major}.{current_version.minor}.{current_version.micro + 1}\n')

print(f'{current_version} -> {current_version.major}.{current_version.minor}.{current_version.micro + 1}')
print(
f'{current_version} -> {current_version.major}.{current_version.minor}.{current_version.micro + 1}'
)
4 changes: 3 additions & 1 deletion release/check_release_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

parser = argparse.ArgumentParser()

parser.add_argument("--release_version", type=str, help="The new version being published.")
parser.add_argument("--release_version",
type=str,
help="The new version being published.")

args = parser.parse_args()

Expand Down

0 comments on commit ea0ebd7

Please sign in to comment.