diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 667c7a5..ec009c6 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 4ff4483..0000000 --- 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 384196a..0000000 --- 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 8710c79..0000000 --- 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 a38f39a..0000000 --- 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 8198da0..0000000 --- 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 22d68c6..0000000 --- a/scripts/test.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -set -e - -pytest tests