From 84f6b64d2db59e3443df9eeee7bbdeae2335cbaa Mon Sep 17 00:00:00 2001 From: shane knapp Date: Tue, 27 Aug 2024 16:39:05 -0700 Subject: [PATCH] docstring ftw --- .github/scripts/get-deployments.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/scripts/get-deployments.py b/.github/scripts/get-deployments.py index 81cc0161f..7dbf8cb6c 100755 --- a/.github/scripts/get-deployments.py +++ b/.github/scripts/get-deployments.py @@ -1,9 +1,12 @@ #!/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 def main(args): - for deployment in next(os.walk(args.deployments))[1]: if deployment not in args.ignore: print(deployment)