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() app = Microdot()

View File

@@ -1,8 +1,4 @@
try: from microdot_asgi import Microdot
import uasyncio as asyncio
except ImportError:
import asyncio
from microdot_asgi import Microdot, Response
app = Microdot() app = Microdot()
@@ -34,4 +30,7 @@ async def shutdown(request):
if __name__ == '__main__': 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: from microdot_asyncio import Microdot
import uasyncio as asyncio
except ImportError:
import asyncio
from microdot_asyncio import Microdot, Response
app = Microdot() app = Microdot()

View File

@@ -1,4 +1,4 @@
from microdot_wsgi import Microdot, Response from microdot_wsgi import Microdot
app = Microdot() app = Microdot()
@@ -30,4 +30,7 @@ def shutdown(request):
if __name__ == '__main__': 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= deps=
flake8 flake8
commands= commands=
flake8 --ignore=W503 --exclude tests/libs src tests flake8 --ignore=W503 --exclude tests/libs src tests examples
[testenv:upy] [testenv:upy]
whitelist_externals=sh whitelist_externals=sh