diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 078e470..dd56b30 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -6,7 +6,7 @@ jobs: ci: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.1.1 + - uses: actions/checkout@v3 - name: Install poetry run: pipx install poetry @@ -23,10 +23,10 @@ jobs: make tests-units - name: Coverage Badge - uses: tj-actions/coverage-badge-py@v2.0.3 + uses: tj-actions/coverage-badge-py@v2 - name: Verify Changed files - uses: tj-actions/verify-changed-files@v16.1.1 + uses: tj-actions/verify-changed-files@v16 id: verify-changed-files with: files: coverage.svg diff --git a/Makefile b/Makefile index e88b2e9..0539488 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ compose-down: ## Stop the development Django server with docker-compose tests-units: ## Run unit tests poetry run coverage run -m pytest -s ./tests/units - poetry run coverage report --precision=2 --fail-under=75 + poetry run coverage report --precision=2 -m .PHONY: tests-units tests-integrations: ## Run integration tests diff --git a/app/main.py b/app/main.py index d7774a9..8dfac78 100644 --- a/app/main.py +++ b/app/main.py @@ -1,5 +1,5 @@ def main() -> None: - print("Let the games begin!") + print("Let the games begin!") # noqa: T201 if __name__ == "__main__": diff --git a/poetry.lock b/poetry.lock index ec1c46f..117f8d5 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.7.0 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand. [[package]] name = "bandit" @@ -17,7 +17,6 @@ GitPython = ">=1.0.1" PyYAML = ">=5.3.1" rich = "*" stevedore = ">=1.20.0" -tomli = {version = ">=1.1.0", optional = true, markers = "python_version < \"3.11\" and extra == \"toml\""} [package.extras] test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0)"] @@ -57,8 +56,6 @@ mypy-extensions = ">=0.4.3" packaging = ">=22.0" pathspec = ">=0.9.0" platformdirs = ">=2" -tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} -typing-extensions = {version = ">=4.0.1", markers = "python_version < \"3.11\""} [package.extras] colorama = ["colorama (>=0.4.3)"] @@ -152,26 +149,9 @@ files = [ {file = "coverage-7.3.2.tar.gz", hash = "sha256:be32ad29341b0170e795ca590e1c07e81fc061cb5b10c74ce7203491484404ef"}, ] -[package.dependencies] -tomli = {version = "*", optional = true, markers = "python_full_version <= \"3.11.0a6\" and extra == \"toml\""} - [package.extras] toml = ["tomli"] -[[package]] -name = "exceptiongroup" -version = "1.1.3" -description = "Backport of PEP 654 (exception groups)" -optional = false -python-versions = ">=3.7" -files = [ - {file = "exceptiongroup-1.1.3-py3-none-any.whl", hash = "sha256:343280667a4585d195ca1cf9cef84a4e178c4b6cf2274caef9859782b567d5e3"}, - {file = "exceptiongroup-1.1.3.tar.gz", hash = "sha256:097acd85d473d75af5bb98e41b61ff7fe35efe6675e4f9370ec6ec5126d160e9"}, -] - -[package.extras] -test = ["pytest (>=6)"] - [[package]] name = "flake8" version = "6.1.0" @@ -188,6 +168,38 @@ mccabe = ">=0.7.0,<0.8.0" pycodestyle = ">=2.11.0,<2.12.0" pyflakes = ">=3.1.0,<3.2.0" +[[package]] +name = "flake8-comments" +version = "0.1.2" +description = "Find redundant comments in Python code" +optional = false +python-versions = ">=3.6" +files = [ + {file = "flake8-comments-0.1.2.tar.gz", hash = "sha256:780b4fc2820ed4ff8a0a98f3fc993f776ede1aecbe0c6cec64d93814b21c9234"}, + {file = "flake8_comments-0.1.2-py3-none-any.whl", hash = "sha256:42250cb4a51dc59e6db25f1291cfb16b78ea233f72dac32a5bc7b09c691235ea"}, +] + +[package.dependencies] +flake8 = "*" + +[package.extras] +test = ["pytest", "pytest-cov"] + +[[package]] +name = "flake8-print" +version = "5.0.0" +description = "print statement checker plugin for flake8" +optional = false +python-versions = ">=3.7" +files = [ + {file = "flake8-print-5.0.0.tar.gz", hash = "sha256:76915a2a389cc1c0879636c219eb909c38501d3a43cc8dae542081c9ba48bdf9"}, + {file = "flake8_print-5.0.0-py3-none-any.whl", hash = "sha256:84a1a6ea10d7056b804221ac5e62b1cee1aefc897ce16f2e5c42d3046068f5d8"}, +] + +[package.dependencies] +flake8 = ">=3.0" +pycodestyle = "*" + [[package]] name = "gitdb" version = "4.0.11" @@ -331,7 +343,6 @@ files = [ [package.dependencies] mypy-extensions = ">=1.0.0" -tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} typing-extensions = ">=4.1.0" [package.extras] @@ -463,11 +474,9 @@ files = [ [package.dependencies] colorama = {version = "*", markers = "sys_platform == \"win32\""} -exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} iniconfig = "*" packaging = "*" pluggy = ">=0.12,<2.0" -tomli = {version = ">=1.0.0", markers = "python_version < \"3.11\""} [package.extras] testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] @@ -490,24 +499,6 @@ pytest = ">=7.0.0" docs = ["sphinx (>=5.3)", "sphinx-rtd-theme (>=1.0)"] testing = ["coverage (>=6.2)", "flaky (>=3.5.0)", "hypothesis (>=5.7.1)", "mypy (>=0.931)", "pytest-trio (>=0.7.0)"] -[[package]] -name = "pytest-cov" -version = "4.1.0" -description = "Pytest plugin for measuring coverage." -optional = false -python-versions = ">=3.7" -files = [ - {file = "pytest-cov-4.1.0.tar.gz", hash = "sha256:3904b13dfbfec47f003b8e77fd5b589cd11904a21ddf1ab38a64f204d6a10ef6"}, - {file = "pytest_cov-4.1.0-py3-none-any.whl", hash = "sha256:6ba70b9e97e69fcc3fb45bfeab2d0a138fb65c4d0d6a41ef33983ad114be8c3a"}, -] - -[package.dependencies] -coverage = {version = ">=5.2.1", extras = ["toml"]} -pytest = ">=4.6" - -[package.extras] -testing = ["fields", "hunter", "process-tests", "pytest-xdist", "six", "virtualenv"] - [[package]] name = "pyyaml" version = "6.0.1" @@ -610,17 +601,6 @@ files = [ [package.dependencies] pbr = ">=2.0.0,<2.1.0 || >2.1.0" -[[package]] -name = "tomli" -version = "2.0.1" -description = "A lil' TOML parser" -optional = false -python-versions = ">=3.7" -files = [ - {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, - {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, -] - [[package]] name = "typing-extensions" version = "4.8.0" @@ -634,5 +614,5 @@ files = [ [metadata] lock-version = "2.0" -python-versions = "3.10.11" -content-hash = "92e1ba4a8530b042d083ab4223fa1b8f426d6a9f148f3012198f8f6e19392fe6" +python-versions = "^3.11.4" +content-hash = "2b176b094f7f4d0bd54640b9f9b454337899fc67c966e1e104e2fef02f0d7c76" diff --git a/pyproject.toml b/pyproject.toml index 0707511..f59056f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,12 +1,12 @@ [tool.poetry] -name = "TEMPLATE_NAME" +name = "app" version = "0.0.1" description = "TEMPLATE_DESCRIPTION" authors = ["TEMPLATE_AUTHOR "] maintainers = ["TEMPLATE_AUTHOR "] [tool.poetry.dependencies] -python = "3.10.11" +python = "3.11.4" [tool.poetry.group.dev.dependencies] black = "23.11.0" @@ -14,9 +14,10 @@ isort = "5.12.0" flake8 = "6.1.0" mypy = "1.7.0" bandit = {extras = ["toml"], version = "1.7.5"} -pytest-cov = {extras = ["toml"], version = "^4.1.0"} -coverage = {extras = ["toml"], version = "^7.3.2"} pytest-asyncio = "0.21.1" +flake8-comments = "0.1.2" +flake8-print = "5.0.0" +coverage = "7.3.2" [tool.black] line-length = 100