zulip/zproject
Anders Kaseorg 7e9db327b3 request: Improve validator type so mypy can check it against REQ.
Old: a validator returns None on success and returns an error string
on error.

New: a validator returns the validated value on success and raises
ValidationError on error.

This allows mypy to catch mismatches between the annotated type of a
REQ parameter and the type that the validator actually validates.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-06-20 22:29:15 -07:00
..
jinja2 python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
__init__.py Rename Django project to zproject. 2013-08-07 11:04:03 -04:00
backends.py request: Improve validator type so mypy can check it against REQ. 2020-06-20 22:29:15 -07:00
computed_settings.py python: Combine some split import groups. 2020-06-18 15:54:11 -07:00
config.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
configured_settings.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
default_settings.py memcached: Change the default MEMCACHED_USERNAME to zulip@localhost. 2020-06-19 21:22:30 -07:00
dev_settings.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
dev_urls.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
email_backends.py email: Migrate to new Python ≥ 3.3 email API. 2020-06-14 20:24:06 -07:00
legacy_urls.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
prod_settings_template.py memcached: Change the default MEMCACHED_USERNAME to zulip@localhost. 2020-06-19 21:22:30 -07:00
settings.py python: Add noqa comments for the specific star imports we allow. 2020-06-11 15:36:43 -07:00
terms.md.template Add TERMS_OF_SERVICE setting. 2016-07-29 20:47:31 -07:00
test_extra_settings.py python: Convert more percent formatting to Python 3.6 f-strings. 2020-06-14 23:27:22 -07:00
test_settings.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
urls.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
wsgi.py wsgi: Try to avoid extra django.setup calls. 2020-06-18 20:16:34 -07:00