Commit 849cd193 authored by Thomas Boni's avatar Thomas Boni
Browse files

improve code quality

parent d0cf9faf
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -3,10 +3,11 @@
# API documentation: https://docs.gitlab.com/ee/api/labels.html
#

import requests
import logging
import sys
from urllib.parse import quote, urlencode
from os import getenv, listdir
import requests

# API Variables
PROJECT_NAME = "r2devops/hub"
@@ -124,7 +125,6 @@ if __name__ == "__main__":
        ]
    )


    jobs = listdir(JOBS_DIR)
    for job in jobs:
        job_label = JOBS_SCOPE_LABEL + job
@@ -137,4 +137,4 @@ if __name__ == "__main__":
                create_label(PROJECT_NAME, job_label)
        else:
            logging.error("Not Authorized, verify the API_TOKEN environment variable in the gitlab project")
            exit(1)
 No newline at end of file
            sys.exit(1)