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
 
@@ -35,24 +35,25 @@ syntax: regexp
 
^kallithea/public/css/style\.css\.map$
 
^kallithea/public/js/bootstrap\.js$
 
^kallithea/public/js/dataTables\.bootstrap\.js$
 
^kallithea/public/js/jquery\.atwho\.min\.js$
 
^kallithea/public/js/jquery\.caret\.min\.js$
 
^kallithea/public/js/jquery\.dataTables\.js$
 
^kallithea/public/js/jquery\.flot\.js$
 
^kallithea/public/js/jquery\.flot\.selection\.js$
 
^kallithea/public/js/jquery\.flot\.time\.js$
 
^kallithea/public/js/jquery\.min\.js$
 
^kallithea/public/js/select2\.js$
 
^kallithea\.db$
 
^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
 
@@ -14,24 +14,35 @@ statistics = true
 
[extract_messages]
 
add_comments = TRANSLATORS:
 
output_file = kallithea/i18n/kallithea.pot
 
msgid-bugs-address = translations@kallithea-scm.org
 
copyright-holder = Various authors, licensing as GPLv3
 

	
 
[init_catalog]
 
domain = kallithea
 
input_file = kallithea/i18n/kallithea.pot
 
output_dir = kallithea/i18n
 

	
 
[update_catalog]
 
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)