diff --git a/.automation/test/python/python_good_1.py b/.automation/test/python/python_good_1.py index 0fdfa407..8106d8d8 100644 --- a/.automation/test/python/python_good_1.py +++ b/.automation/test/python/python_good_1.py @@ -57,6 +57,7 @@ def create_label(repo_id, label): return response + def get_labels(owner, repo): """ Gets a list of labels from the supplied repo. @@ -95,6 +96,7 @@ def get_labels(owner, repo): ) ) + def delete_label(label_id): """ Delete the specified label @@ -117,6 +119,7 @@ def delete_label(label_id): return result + @click.command() @click.option("--dry", is_flag=True) @click.argument("source_repo") @@ -185,6 +188,7 @@ def copy_labels(source_repo, target_repo, dry): print("Done") + if __name__ == "__main__": # Pylint doesn't know that @click.command takes care of injecting the # function parameters. Disabling Pylint error.