Configuration
There are 3 ways to control the behavior of `pytype.
-
Pass command-line options to
pytype. -
Specify a configuration file using
pytype --config /path/to/config/file .... You can generate an example configuration file using the commandpytype --generate-config pytype.cfg. -
If no configuration file is found, pytype uses the first
setup.cfgit founds and use the[pytype]section.
Please refer to
xinstalll::pytype/setup.cfg
for an example of configuration file of pytype.
Exclude Files and/or Directories
-
Use the
--excludeoption.PATH=.venv/bin:$PATH pytype xinstall --exclude xinstall/data -
Specify files and/or directories to exclude in the configuration file
setup.cfg.[pytype] exclude = **/*_test.py **/test_*.py
Silent Errors
Please refer to Silencing errors for detailed explanations.
References
https://google.github.io/pytype/faq.html
https://google.github.io/pytype/user_guide.html
https://google.github.io/pytype/