add pytype conf file

This commit is contained in:
Damien Elmes 2019-12-16 18:27:26 +10:00
parent 81e3acd599
commit 86d6352047
2 changed files with 45 additions and 1 deletions

44
pytype.conf Normal file
View File

@ -0,0 +1,44 @@
# NOTE: All relative paths are relative to the location of this file.
[pytype]
# Space-separated list of files or directories to exclude.
exclude =
**/*_test.py
**/test_*.py
# Space-separated list of files or directories to process.
inputs =
anki
# Keep going past errors to analyze as many files as possible.
keep_going = False
# Run N jobs in parallel.
jobs = 8
# All pytype output goes here.
output = .pytype
# Paths to source code directories, separated by ':'.
pythonpath =
.
# Python version (major.minor) of the target code.
python_version = 3.7
# Comma separated list of error names to ignore.
disable =
# pyi-error
# Don't report errors.
report_errors = True
# Experimental: Infer precise return types even for invalid function calls.
precise_return = False
# Experimental: solve unknown types to label with structural types.
protocols = False
# Experimental: Only load submodules that are explicitly imported.
strict_import = False

View File

@ -2,4 +2,4 @@
TOOLS="$(cd "`dirname "$0"`"; pwd)"
mypy $TOOLS/../anki $TOOLS/../aqt
pytype $TOOLS/../anki
(cd $TOOLS/.. && pytype --config pytype.conf)