Setting up a trunk for branching
[nqaap] / src / opt / Nqa-Audiobook-player / .ropeproject / config.py
1 # The default ``config.py``
2
3
4 def set_prefs(prefs):
5     """This function is called before opening the project"""
6
7     # Specify which files and folders to ignore in the project.
8     # Changes to ignored resources are not added to the history and
9     # VCSs.  Also they are not returned in `Project.get_files()`.
10     # Note that ``?`` and ``*`` match all characters but slashes.
11     # '*.pyc': matches 'test.pyc' and 'pkg/test.pyc'
12     # 'mod*.pyc': matches 'test/mod1.pyc' but not 'mod/1.pyc'
13     # '.svn': matches 'pkg/.svn' and all of its children
14     # 'build/*.o': matches 'build/lib.o' but not 'build/sub/lib.o'
15     # 'build//*.o': matches 'build/lib.o' and 'build/sub/lib.o'
16     prefs['ignored_resources'] = ['*.pyc', '*~', '.ropeproject',
17                                   '.hg', '.svn', '_svn', '.git']
18
19     # Specifies which files should be considered python files.  It is
20     # useful when you have scripts inside your project.  Only files
21     # ending with ``.py`` are considered to be python files by
22     # default.
23     #prefs['python_files'] = ['*.py']
24
25     # Custom source folders:  By default rope searches the project
26     # for finding source folders (folders that should be searched
27     # for finding modules).  You can add paths to that list.  Note
28     # that rope guesses project source folders correctly most of the
29     # time; use this if you have any problems.
30     # The folders should be relative to project root and use '/' for
31     # separating folders regardless of the platform rope is running on.
32     # 'src/my_source_folder' for instance.
33     #prefs.add('source_folders', 'src')
34
35     # You can extend python path for looking up modules
36     #prefs.add('python_path', '~/python/')
37
38     # Should rope save object information or not.
39     prefs['save_objectdb'] = True
40     prefs['compress_objectdb'] = False
41
42     # If `True`, rope analyzes each module when it is being saved.
43     prefs['automatic_soa'] = True
44     # The depth of calls to follow in static object analysis
45     prefs['soa_followed_calls'] = 0
46
47     # If `False` when running modules or unit tests "dynamic object
48     # analysis" is turned off.  This makes them much faster.
49     prefs['perform_doa'] = True
50
51     # Rope can check the validity of its object DB when running.
52     prefs['validate_objectdb'] = True
53
54     # How many undos to hold?
55     prefs['max_history_items'] = 32
56
57     # Shows whether to save history across sessions.
58     prefs['save_history'] = True
59     prefs['compress_history'] = False
60
61     # Set the number spaces used for indenting.  According to
62     # :PEP:`8`, it is best to use 4 spaces.  Since most of rope's
63     # unit-tests use 4 spaces it is more reliable, too.
64     prefs['indent_size'] = 4
65
66     # Builtin and c-extension modules that are allowed to be imported
67     # and inspected by rope.
68     prefs['extension_modules'] = []
69
70     # Add all standard c-extensions to extension_modules list.
71     prefs['import_dynload_stdmods'] = True
72
73     # If `True` modules with syntax errors are considered to be empty.
74     # The default value is `False`; When `False` syntax errors raise
75     # `rope.base.exceptions.ModuleSyntaxError` exception.
76     prefs['ignore_syntax_errors'] = False
77
78     # If `True`, rope ignores unresolvable imports.  Otherwise, they
79     # appear in the importing namespace.
80     prefs['ignore_bad_imports'] = False
81
82
83 def project_opened(project):
84     """This function is called after opening the project"""
85     # Do whatever you like here!