Skip to content

Commit

Permalink
must remember: double quotes, not single. double quotes, not single. …
Browse files Browse the repository at this point in the history
…match the style of the rest of the python i write. match the style of the rest of the python i write
  • Loading branch information
shaneknapp committed Aug 27, 2024
1 parent 84f6b64 commit c888a45
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/scripts/get-deployments.py
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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()

Expand Down

0 comments on commit c888a45

Please sign in to comment.