mirror of
https://github.com/rszamszur/fastapi-mvc-template.git
synced 2021-11-08 01:34:05 +03:00
Fix style guide, fix code complexity job
This commit is contained in:
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -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:
|
||||
|
||||
@@ -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__)
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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"]),
|
||||
|
||||
Reference in New Issue
Block a user