From c888a45b2730808b89f40e61e60520befe248854 Mon Sep 17 00:00:00 2001 From: shane knapp Date: Tue, 27 Aug 2024 16:45:55 -0700 Subject: [PATCH] must remember: double quotes, not single. double quotes, not single. match the style of the rest of the python i write. match the style of the rest of the python i write --- .github/scripts/get-deployments.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/scripts/get-deployments.py b/.github/scripts/get-deployments.py index 7dbf8cb6c..1ffa5bf53 100755 --- a/.github/scripts/get-deployments.py +++ b/.github/scripts/get-deployments.py @@ -1,8 +1,8 @@ #!/usr/bin/env python -''' +""" Get a list of deployments from the deployments/ directory, excluding any directories specified with the --ignore flag. -''' +""" import argparse import os @@ -11,20 +11,20 @@ def main(args): if deployment not in args.ignore: print(deployment) -if __name__ == '__main__': - parser = argparse.ArgumentParser(description='Generate a list of deployments from the deployments/ directory.') +if __name__ == "__main__": + parser = argparse.ArgumentParser(description="Generate a list of deployments from the deployments/ directory.") parser.add_argument( - '--deployments', - '-d', - default='deployments', - help='The directory to search for deployments.' + "--deployments", + "-d", + default="deployments", + help="The directory to search for deployments." ) parser.add_argument( - '--ignore', - '-i', - nargs='*', - default=(), - help='Ignore one or more directories in the deployments/ subdir.' + "--ignore", + "-i", + nargs="*", + default=[], + help="Ignore one or more directories in the deployments/ subdir." ) args = parser.parse_args()