From 5fcc781ee86ffa8318ed02c00354fe40edb58814 Mon Sep 17 00:00:00 2001 From: Miguel BarĂ£o Date: Tue, 24 Mar 2020 13:38:04 +0000 Subject: [PATCH] add mypy.ini update .gitignore --- .gitignore | 5 ++++- mypy.ini | 16 ++++++++++++++++ perguntations/serve.py | 4 ++-- 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 mypy.ini diff --git a/.gitignore b/.gitignore index 255da5b..19ed4f7 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,7 @@ static/lib node_modules/ # ignore documentation until it is actually written -doc/ \ No newline at end of file +doc/ + +# ignore mypy +.mypy_cache/ \ No newline at end of file diff --git a/mypy.ini b/mypy.ini new file mode 100644 index 0000000..db7de3a --- /dev/null +++ b/mypy.ini @@ -0,0 +1,16 @@ +[mypy] +python_version = 3.7 +# warn_return_any = True +# warn_unused_configs = True + +[mypy-sqlalchemy.*] +ignore_missing_imports = True + +[mypy-pygments.*] +ignore_missing_imports = True + +[mypy-bcrypt.*] +ignore_missing_imports = True + +[mypy-mistune.*] +ignore_missing_imports = True diff --git a/perguntations/serve.py b/perguntations/serve.py index 78ccede..68f3289 100644 --- a/perguntations/serve.py +++ b/perguntations/serve.py @@ -140,7 +140,7 @@ class BaseHandler(tornado.web.RequestHandler): # --- ADMIN ------------------------------------------------------------------ class AdminHandler(BaseHandler): - SUPPORTED_METHODS = ['GET', 'POST'] + # SUPPORTED_METHODS = ['GET', 'POST'] @tornado.web.authenticated @admin_only @@ -349,7 +349,7 @@ class TestHandler(BaseHandler): # --- REVIEW ----------------------------------------------------------------- class ReviewHandler(BaseHandler): - SUPPORTED_METHODS = ['GET'] + # SUPPORTED_METHODS = ['GET'] _templates = { 'radio': 'review-question-radio.html', -- libgit2 0.21.2