# HG changeset patch # User Mads Kiilerich # Date 2021-01-14 22:03:52 # 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 --git a/.hgignore b/.hgignore --- a/.hgignore +++ b/.hgignore @@ -56,3 +56,4 @@ syntax: regexp ^deps\.dot$ ^deps\.svg$ ^deps\.txt$ +^\.pytype/ diff --git a/pytype_requirements.txt b/pytype_requirements.txt new file mode 100644 --- /dev/null +++ b/pytype_requirements.txt @@ -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 --git a/setup.cfg b/setup.cfg --- a/setup.cfg +++ b/setup.cfg @@ -35,3 +35,14 @@ all_files = 1 [upload_sphinx] upload-dir = docs/_build/html + +[pytype] +inputs = + kallithea + setup.py +exclude = + **/test_*.py +disable = + pyi-error +keep_going = True +#jobs = 3