Fix style guide, fix code complexity job

This commit is contained in:
Radosław Szamszur
2021-07-27 14:38:10 +02:00
parent 60929bea85
commit 9b75bc2f97
4 changed files with 4 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ jobs:
- name: Code errors
run: flake8 --select=F --tee --output-file=flake8_code_errors.txt --statistics --count setup.py fastapi_mvc_template
- name: Code complexity
run: flake8 --select=C901 --tee --output-file=code_complexity.txt --count
run: flake8 --select=C901 --tee --output-file=code_complexity.txt --count fastapi_mvc_template
- name: TODO
run: flake8 --select=T --tee --output-file=todo_occurence.txt --statistics --count setup.py fastapi_mvc_template tests
unit-tests:

View File

@@ -2,7 +2,7 @@
"""FastAPI MVC template."""
import logging
from .version import __version__
from .version import __version__ # noqa: F401
# initialize logging
log = logging.getLogger(__name__)

View File

@@ -15,7 +15,7 @@ from fastapi_mvc_template.cli.commands.serve import serve
default=False,
)
def cli(**options):
"""FastAPI MVC template CLI root."""
"""Fastapi MVC template CLI root."""
if options['verbose']:
level = logging.DEBUG
else:

View File

@@ -34,7 +34,7 @@ from fastapi_mvc_template.wsgi import run_wsgi
show_default=True,
)
def serve(**options):
"""FastAPI MVC template CLI serve command."""
"""Fastapi MVC template CLI serve command."""
run_wsgi(
host=options["host"],
port=str(options["port"]),