Run linter on examples

This commit is contained in:
Miguel Grinberg
2022-06-04 16:41:40 +01:00
parent bcbad51675
commit c18ccccb8e
5 changed files with 13 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
from microdot import Microdot, Response
from microdot import Microdot
app = Microdot()

View File

@@ -1,8 +1,4 @@
try:
import uasyncio as asyncio
except ImportError:
import asyncio
from microdot_asgi import Microdot, Response
from microdot_asgi import Microdot
app = Microdot()
@@ -34,4 +30,7 @@ async def shutdown(request):
if __name__ == '__main__':
app.run(debug=True)
print('''Use an ASGI web server to run this applicaton.
Example:
uvicorn hello_asgi:app
''')

View File

@@ -1,8 +1,4 @@
try:
import uasyncio as asyncio
except ImportError:
import asyncio
from microdot_asyncio import Microdot, Response
from microdot_asyncio import Microdot
app = Microdot()

View File

@@ -1,4 +1,4 @@
from microdot_wsgi import Microdot, Response
from microdot_wsgi import Microdot
app = Microdot()
@@ -30,4 +30,7 @@ def shutdown(request):
if __name__ == '__main__':
app.run(debug=True)
print('''Use a WSGI web server to run this applicaton.
Example:
gunicorn hello_wsgi:app
''')

View File

@@ -24,7 +24,7 @@ deps=
deps=
flake8
commands=
flake8 --ignore=W503 --exclude tests/libs src tests
flake8 --ignore=W503 --exclude tests/libs src tests examples
[testenv:upy]
whitelist_externals=sh