From 0074875a4032c3a0c106188ec7a1bea4c1fe481d Mon Sep 17 00:00:00 2001 From: renaud gaudin Date: Mon, 20 Mar 2023 15:37:37 +0000 Subject: [PATCH] using black 23.1.0 --- .github/workflows/ci.yml | 12 ++++++------ docker_install.py | 1 - docker_login.py | 1 - docker_logout.py | 1 - find_tag.py | 1 - 5 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 927e94b..934b632 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,15 +5,15 @@ on: jobs: qa: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.8 - uses: actions/setup-python@v1 + - uses: actions/checkout@v3.4.0 + - name: Set up Python 3.11 + uses: actions/setup-python@v4.5.0 with: - python-version: 3.8 + python-version: "3.11" - name: Install dependencies - run: python -m pip install -U pytest black + run: python -m pip install -U pytest black==23.1.0 - name: Black run: black --check . - name: Tests diff --git a/docker_install.py b/docker_install.py index 5a0965a..12e174e 100644 --- a/docker_install.py +++ b/docker_install.py @@ -8,7 +8,6 @@ def check_installed_version(): - version = subprocess.run( ["docker", "buildx", "version"], stdout=subprocess.PIPE, diff --git a/docker_login.py b/docker_login.py index f85f5ea..2a38bf4 100644 --- a/docker_login.py +++ b/docker_login.py @@ -6,7 +6,6 @@ def docker_login_from_env(): - credentials = dict( [ [x.strip() for x in item.split("=")] if "=" in item else (item.strip(), "") diff --git a/docker_logout.py b/docker_logout.py index 2be750f..0a35763 100644 --- a/docker_logout.py +++ b/docker_logout.py @@ -6,7 +6,6 @@ def docker_logout_from_env(): - for registry in os.getenv("REGISTRIES", "").split(): print(f"Logging out of {registry}…") logout = subprocess.run(["docker", "logout", registry]) diff --git a/find_tag.py b/find_tag.py index 592534e..1116948 100644 --- a/find_tag.py +++ b/find_tag.py @@ -8,7 +8,6 @@ def find_tag_from_env(): - docker_tag_for_master = os.getenv("ON_MASTER") manual_tag = os.getenv("MANUAL_TAG", "") version_tag, latest = "", False