From a936430fd5b4954bae0146e969505979ae5a3321 Mon Sep 17 00:00:00 2001 From: Vanessa Yuen Date: Tue, 29 Aug 2017 19:55:34 -0400 Subject: [PATCH] fix lint errors --- script/bump-version.py | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/script/bump-version.py b/script/bump-version.py index e6faa90cc872..40dd75962895 100755 --- a/script/bump-version.py +++ b/script/bump-version.py @@ -13,11 +13,36 @@ SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) def main(): - parser = argparse.ArgumentParser(description='Bump version numbers. Must specify at least one option.') - parser.add_argument('--version', default=None, dest='new_version', help='new version number') - parser.add_argument('--bump', action='store', dest='bump', default=None, help='increment [major | minor | patch | beta]') - parser.add_argument('--stable', action='store_true', default= False, dest='stable', help='promote to stable (i.e. remove `-beta.x` suffix)') - parser.add_argument('--dry-run', action='store_true', default= False, dest='dry_run', help='just to check that version number is correct') + parser = argparse.ArgumentParser( + description='Bump version numbers. Must specify at least one option.' + ) + parser.add_argument( + '--version', + default=None, + dest='new_version', + help='new version number' + ) + parser.add_argument( + '--bump', + action='store', + default=None, + dest='bump', + help='increment [major | minor | patch | beta]' + ) + parser.add_argument( + '--stable', + action='store_true', + default= False, + dest='stable', + help='promote to stable (i.e. remove `-beta.x` suffix)' + ) + parser.add_argument( + '--dry-run', + action='store_true', + default= False, + dest='dry_run', + help='just to check that version number is correct' + ) args = parser.parse_args()