From 4b107f8a20889013dc1fc34133450c6415a3fcc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Sat, 2 Nov 2024 16:12:11 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Remove=20old=20unused=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 2 +- mypy.ini | 3 --- pyproject.toml | 21 --------------------- scripts/format-imports.sh | 6 ------ scripts/format.sh | 7 ------- scripts/lint.sh | 8 -------- scripts/test.sh | 4 ---- 7 files changed, 1 insertion(+), 50 deletions(-) delete mode 100644 mypy.ini delete mode 100644 pyproject.toml delete mode 100755 scripts/format-imports.sh delete mode 100644 scripts/format.sh delete mode 100755 scripts/lint.sh delete mode 100644 scripts/test.sh diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 667c7a5b..ec009c62 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -55,7 +55,7 @@ jobs: - name: Install Dependencies run: python -m pip install docker pytest - name: Test Image - run: bash scripts/test.sh + run: pytest tests env: NAME: ${{ matrix.image.name }} PYTHON_VERSION: ${{ matrix.image.python_version }} diff --git a/mypy.ini b/mypy.ini deleted file mode 100644 index 4ff4483a..00000000 --- a/mypy.ini +++ /dev/null @@ -1,3 +0,0 @@ -[mypy] -disallow_untyped_defs = True -ignore_missing_imports = True diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index 384196af..00000000 --- a/pyproject.toml +++ /dev/null @@ -1,21 +0,0 @@ -[tool.poetry] -name = "uvicorn-gunicorn-docker" -version = "0.1.0" -description = "Docker image with Uvicorn managed by Gunicorn for high-performance web applications in Python with performance auto-tuning." -authors = ["Sebastián Ramírez "] -license = "MIT" - -[tool.poetry.dependencies] -python = "^3.7" -docker = "^6.0.1" -pytest = "^7.0.1" - -[tool.poetry.dev-dependencies] -black = "^23.1" -isort = "^5.8.0" -autoflake = "^2.0.0" -mypy = "^1.1" - -[build-system] -requires = ["poetry>=0.12"] -build-backend = "poetry.masonry.api" diff --git a/scripts/format-imports.sh b/scripts/format-imports.sh deleted file mode 100755 index 8710c79d..00000000 --- a/scripts/format-imports.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash -set -x - -# Sort imports one per line, so autoflake can remove unused imports -isort --recursive --force-single-line-imports --apply ./ -sh ./scripts/format.sh diff --git a/scripts/format.sh b/scripts/format.sh deleted file mode 100644 index a38f39aa..00000000 --- a/scripts/format.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash - -set -x - -autoflake --remove-all-unused-imports --recursive --remove-unused-variables --in-place ./ --exclude=__init__.py -isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --combine-as --line-width 88 --recursive --apply ./ -black ./ diff --git a/scripts/lint.sh b/scripts/lint.sh deleted file mode 100755 index 8198da08..00000000 --- a/scripts/lint.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -set -e -set -x - -mypy ./ -black ./ --check -isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --combine-as --line-width 88 --recursive --check-only diff --git a/scripts/test.sh b/scripts/test.sh deleted file mode 100644 index 22d68c66..00000000 --- a/scripts/test.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -set -e - -pytest tests