Changeset - 278cc5936ed5
[Not reviewed]
default
0 2 1
Mads Kiilerich (mads) - 5 years ago 2021-01-14 23:03:52
mads@kiilerich.com
Grafted from: 4ed6d75d959e
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
3 files changed with 22 insertions and 0 deletions:
0 comments (0 inline, 0 general)
.hgignore
Show inline comments
 
@@ -47,12 +47,13 @@ syntax: regexp
 
^test\.db$
 
^Kallithea\.egg-info$
 
^my\.ini$
 
^fabfile\.py$
 
^\.idea$
 
^\.cache$
 
^\.pytest_cache$
 
^venv$
 
/__pycache__$
 
^deps\.dot$
 
^deps\.svg$
 
^deps\.txt$
 
^\.pytype/
pytype_requirements.txt
Show inline comments
 
new file 100644
 
# 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
setup.cfg
Show inline comments
 
@@ -26,12 +26,23 @@ output_dir = kallithea/i18n
 
domain = kallithea
 
input_file = kallithea/i18n/kallithea.pot
 
output_dir = kallithea/i18n
 
previous = true
 

	
 
[build_sphinx]
 
source-dir = docs/
 
build-dir = docs/_build
 
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
0 comments (0 inline, 0 general)