
- #Maya python ls include type and exclude type full
- #Maya python ls include type and exclude type code
Specifying -config-file= (with no filename) will ignore all Settings override mypy’s built-in defaults andĬommand line flags can override settings. This flag makes mypy read configuration settings from the given file.īy default settings are read from mypy.ini. Never recursively discover files with extensions other than. With a period, exactly as -exclude '/(site-packages|node_modules|_pycache_|\.*)/$' would. “site-packages”, “node_modules” or “_pycache_”, or those whose name starts Note that mypy will never recursively discover files and directories named
#Maya python ls include type and exclude type code
Option to additionally avoid mypy from following imports and checking code You can use a per-module follow_imports config In particular, -exclude does not affect mypy’s import following. For instance, mypy -exclude '/setup.py$' but_still_check/setup.py. If you pass a file or module explicitly it will still beĬhecked. Is, when mypy is discovering files within a directory tree or submodules ofĪ package to check. Note that this flag only affects recursive directory tree discovery, that Multiple files / directories / paths, you can combine expressions with Those matching a subpath with -exclude /project/vendor/. Similarly, you can ignore discoveringĭirectories with a given name by e.g. Which mypy should ignore while recursively discovering files to check.įor instance, to avoid discovering any files named setup.py you could

exclude ¶Ī regular expression that matches file names, directory names and paths c PROGRAM_TEXT, -command PROGRAM_TEXT ¶Īsks mypy to type check the provided string as a program. This flag is identical to -module apart from thisīehavior. Mypy will recursively type check any submodules of the provided Mypy will not recursively type check any submodules of the providedĪsks mypy to type check the provided package.

m MODULE, -module MODULE ¶Īsks mypy to type check the provided module.
#Maya python ls include type and exclude type full
A short summary of the relevant flags is included below:įor full details, see Running mypy and managing imports. Mypy also lets you specify what code to type check in several other Note that directories are checked recursively.
