From 617aa98ee11dc5261e716535946c6c05415f2da9 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 8 Jun 2024 23:56:21 +0200 Subject: [PATCH] " --- cd/__main__.py | 6 +++--- cd/project.py | 12 ++++++------ cd/projects.py | 8 ++++---- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/cd/__main__.py b/cd/__main__.py index d67667f..23bd676 100755 --- a/cd/__main__.py +++ b/cd/__main__.py @@ -6,13 +6,13 @@ import sys import cd -if __name__ == '__main__': +if __name__ == "__main__": command, *arguments = sys.argv command = os.path.basename(command) - if command == '__main__.py': + if command == "__main__.py": cd.set_ssh(*arguments) cd.install_commands(__file__) else: - command = command.replace('-', '_') + command = command.replace("-", "_") function = getattr(cd, command) function(*arguments) diff --git a/cd/project.py b/cd/project.py index d5a96d7..3d2e813 100644 --- a/cd/project.py +++ b/cd/project.py @@ -1,16 +1,16 @@ from os import path BRANCH = [ - 'GITHUB_REF_NAME', - 'CI_COMMIT_BRANCH', + "GITHUB_REF_NAME", + "CI_COMMIT_BRANCH", ] NAME = [ - 'GITHUB_REPOSITORY', - 'CI_PROJECT_PATH', + "GITHUB_REPOSITORY", + "CI_PROJECT_PATH", ] ROOT = [ - 'GITHUB_WORKSPACE', - 'CI_PROJECT_DIR', + "GITHUB_WORKSPACE", + "CI_PROJECT_DIR", ] diff --git a/cd/projects.py b/cd/projects.py index 81fe3db..4144f6a 100644 --- a/cd/projects.py +++ b/cd/projects.py @@ -1,12 +1,12 @@ from os import path GROUP_AND_NAME = [ - 'GITHUB_REPOSITORY', - 'CI_PROJECT_PATH', + "GITHUB_REPOSITORY", + "CI_PROJECT_PATH", ] SERVER_URL = [ - 'GITHUB_SERVER_URL', - 'CI_SERVER_URL', + "GITHUB_SERVER_URL", + "CI_SERVER_URL", ]