Settings\uf0c1
This module contains variables with global Jedi settings. To change the
behavior of Jedi, change the variables defined in jedi.settings.
Plugins should expose an interface so that the user can adjust the configuration.
Example usage:
from jedi import settings
settings.case_insensitive_completion = True
Completion output\uf0c1
-
jedi.settings.case_insensitive_completion= True\uf0c1 Completions are by default case insensitive.
-
jedi.settings.add_bracket_after_function= False\uf0c1 Adds an opening bracket after a function for completions.
Filesystem cache\uf0c1
-
jedi.settings.cache_directory= '/home/users/builder/.cache/jedi'\uf0c1 The path where the cache is stored.
On Linux, this defaults to
~/.cache/jedi/, on OS X to~/Library/Caches/Jedi/and on Windows to%LOCALAPPDATA%\Jedi\Jedi\. On Linux, if the environment variable$XDG_CACHE_HOMEis set,$XDG_CACHE_HOME/jediis used instead of the default one.
Parser\uf0c1
Dynamic stuff\uf0c1
-
jedi.settings.dynamic_array_additions= True\uf0c1 check for append, etc. on arrays: [], {}, () as well as list/set calls.
-
jedi.settings.dynamic_params= True\uf0c1 A dynamic param completion, finds the callees of the function, which define the params of a function.
-
jedi.settings.dynamic_params_for_other_modules= True\uf0c1 Do the same for other modules.
-
jedi.settings.auto_import_modules= ['gi']\uf0c1 Modules that will not be analyzed but imported, if they contain Python code. This improves autocompletion for libraries that use
setattrorglobals()modifications a lot.