Commit 5fcc781ee86ffa8318ed02c00354fe40edb58814
1 parent
a566a5d6
Exists in
master
and in
1 other branch
add mypy.ini
update .gitignore
Showing
3 changed files
with
22 additions
and
3 deletions
Show diff stats
.gitignore
| @@ -12,4 +12,7 @@ static/lib | @@ -12,4 +12,7 @@ static/lib | ||
| 12 | node_modules/ | 12 | node_modules/ |
| 13 | 13 | ||
| 14 | # ignore documentation until it is actually written | 14 | # ignore documentation until it is actually written |
| 15 | -doc/ | ||
| 16 | \ No newline at end of file | 15 | \ No newline at end of file |
| 16 | +doc/ | ||
| 17 | + | ||
| 18 | +# ignore mypy | ||
| 19 | +.mypy_cache/ | ||
| 17 | \ No newline at end of file | 20 | \ No newline at end of file |
| @@ -0,0 +1,16 @@ | @@ -0,0 +1,16 @@ | ||
| 1 | +[mypy] | ||
| 2 | +python_version = 3.7 | ||
| 3 | +# warn_return_any = True | ||
| 4 | +# warn_unused_configs = True | ||
| 5 | + | ||
| 6 | +[mypy-sqlalchemy.*] | ||
| 7 | +ignore_missing_imports = True | ||
| 8 | + | ||
| 9 | +[mypy-pygments.*] | ||
| 10 | +ignore_missing_imports = True | ||
| 11 | + | ||
| 12 | +[mypy-bcrypt.*] | ||
| 13 | +ignore_missing_imports = True | ||
| 14 | + | ||
| 15 | +[mypy-mistune.*] | ||
| 16 | +ignore_missing_imports = True |
perguntations/serve.py
| @@ -140,7 +140,7 @@ class BaseHandler(tornado.web.RequestHandler): | @@ -140,7 +140,7 @@ class BaseHandler(tornado.web.RequestHandler): | ||
| 140 | 140 | ||
| 141 | # --- ADMIN ------------------------------------------------------------------ | 141 | # --- ADMIN ------------------------------------------------------------------ |
| 142 | class AdminHandler(BaseHandler): | 142 | class AdminHandler(BaseHandler): |
| 143 | - SUPPORTED_METHODS = ['GET', 'POST'] | 143 | + # SUPPORTED_METHODS = ['GET', 'POST'] |
| 144 | 144 | ||
| 145 | @tornado.web.authenticated | 145 | @tornado.web.authenticated |
| 146 | @admin_only | 146 | @admin_only |
| @@ -349,7 +349,7 @@ class TestHandler(BaseHandler): | @@ -349,7 +349,7 @@ class TestHandler(BaseHandler): | ||
| 349 | 349 | ||
| 350 | # --- REVIEW ----------------------------------------------------------------- | 350 | # --- REVIEW ----------------------------------------------------------------- |
| 351 | class ReviewHandler(BaseHandler): | 351 | class ReviewHandler(BaseHandler): |
| 352 | - SUPPORTED_METHODS = ['GET'] | 352 | + # SUPPORTED_METHODS = ['GET'] |
| 353 | 353 | ||
| 354 | _templates = { | 354 | _templates = { |
| 355 | 'radio': 'review-question-radio.html', | 355 | 'radio': 'review-question-radio.html', |