# HG changeset patch # User Mads Kiilerich # Date 1610661832 -3600 # Node ID 278cc5936ed504829df9c2c32d63db64ba70e0bf # Parent 7b58d01e925ab169536ed5aa2e06757d44594882 pytype: introduce configuration for running pytype Install pytype and dependencies on Python 3.8 with: pip install --upgrade -r pytype_requirements.txt Checks can then be run with: pytype diff -r 7b58d01e925a -r 278cc5936ed5 .hgignore --- a/.hgignore Sat Feb 06 21:39:27 2021 +0100 +++ b/.hgignore Thu Jan 14 23:03:52 2021 +0100 @@ -56,3 +56,4 @@ ^deps\.dot$ ^deps\.svg$ ^deps\.txt$ +^\.pytype/ diff -r 7b58d01e925a -r 278cc5936ed5 pytype_requirements.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pytype_requirements.txt Thu Jan 14 23:03:52 2021 +0100 @@ -0,0 +1,10 @@ +# Note: pytype currently only supports Python3.8 +pytype == 2021.1.8 +# optional modules that we want for pytype checking +appenlight_client +ipython +kajiki +psycopg2 +python-ldap +python-pam +tgext.debugbar diff -r 7b58d01e925a -r 278cc5936ed5 setup.cfg --- a/setup.cfg Sat Feb 06 21:39:27 2021 +0100 +++ b/setup.cfg Thu Jan 14 23:03:52 2021 +0100 @@ -35,3 +35,14 @@ [upload_sphinx] upload-dir = docs/_build/html + +[pytype] +inputs = + kallithea + setup.py +exclude = + **/test_*.py +disable = + pyi-error +keep_going = True +#jobs = 3