From f9066e2be5881a39f0048a86987728df4fd9f773 Mon Sep 17 00:00:00 2001 From: Steve Dignam Date: Thu, 13 Aug 2020 22:09:30 -0400 Subject: add: type hints to top level functions (#218) * WIP: add type hints to top level functions TODO: - see if mypy picks up types when installing in new project - setup mypy in CI fixes https://github.com/pyca/bcrypt/issues/215 * add mypy to ci & move py.typed to correct folder? * try and get mypy to run in CI * run mypy in travis? * use mypy defaults for python_version and platform https://mypy.readthedocs.io/en/stable/config_file.html#platform-configuration * update change log with changes --- tox.ini | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 3438053..717c8a0 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = pypy3,py36,py37,py38,pep8,packaging +envlist = pypy3,py36,py37,py38,pep8,packaging,mypy isolated_build = True [testenv] @@ -21,6 +21,12 @@ commands = flake8 . black --check . +[testenv:mypy] +deps = + mypy +commands = + mypy src/bcrypt + [testenv:packaging] deps = check-manifest -- cgit v1.2.1