Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Jun 17, 2024
1 parent e5b0385 commit 9cedd7f
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions scripts/update_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,17 @@ def update_version(


if __name__ == "__main__":
epilog = """\
Update version information stored in version.txt in the project root
and other files in the repository. If --version is not provided, the
version number will not be changed. The version tag must comply with
'<major>.<minor>.<patch>' format convention for semantic versioning.
To show the version without changing anything, use --get (short -g).
"""
parser = argparse.ArgumentParser(
prog=f"Update {_project_name} version",
formatter_class=argparse.RawDescriptionHelpFormatter,
epilog=textwrap.dedent(
"""\
Update version information stored in version.txt in the project root
and other files in the repository. If --version is not provided, the
version number will not be changed. The version tag must comply with
'<major>.<minor>.<patch>' format convention for semantic versioning.
To show the version without changing anything, use --get (short -g).
"""
),
epilog=textwrap.dedent(epilog),
)
parser.add_argument(
"-v",
Expand Down

0 comments on commit 9cedd7f

Please sign in to comment.