From fdfb9339fd18048b6802703bab091caf67f2679a Mon Sep 17 00:00:00 2001 From: Ard Kuijpers Date: Mon, 19 Feb 2024 20:30:22 +0100 Subject: [PATCH] Fix linting issues --- .github/workflows/dockerpublish.yml | 4 +--- Dockerfile | 3 +-- app.py | 11 ----------- 3 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 app.py diff --git a/.github/workflows/dockerpublish.yml b/.github/workflows/dockerpublish.yml index 1c55085..8d0ce64 100644 --- a/.github/workflows/dockerpublish.yml +++ b/.github/workflows/dockerpublish.yml @@ -94,8 +94,6 @@ jobs: type=ref,event=pr type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} - type=semver,pattern={{major}} - type=sha - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx @@ -109,7 +107,7 @@ jobs: uses: docker/build-push-action@v5 with: context: . - platforms: linux/amd64, linux/arm64, linux/arm/v7,linux/arm64/v8 + platforms: linux/amd64, linux/arm64, linux/arm/v7 push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index c92353b..58ca8bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,7 @@ ENV POETRY_NO_INTERACTION=1 \ COPY pyproject.toml poetry.lock ./ RUN apt update && apt install -y build-essential -RUN \ - if [ `dpkg --print-architecture` = "armhf" ]; then \ +RUN if [ $(dpkg --print-architecture) = "armhf" ]; then \ printf "[global]\nextra-index-url=https://www.piwheels.org/simple\n" > /etc/pip.conf ; \ fi RUN pip install poetry diff --git a/app.py b/app.py deleted file mode 100644 index 23b0d09..0000000 --- a/app.py +++ /dev/null @@ -1,11 +0,0 @@ -"""The main app.""" -import logging -import asyncio - -from atagmqtt.__main__ import main -from atagmqtt.settings import Settings - - - -if __name__ == "__main__": - asyncio.run(main())