forked from DamnWidget/anaconda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Anaconda.sublime-settings
351 lines (287 loc) · 11.3 KB
/
Anaconda.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
/*
Anaconda default settings
*/
{
/*
Auto project switching
If you set this to true, anaconda will detect project switches and
will reconnect a new JsonServer with the switched project
configuration
*/
"auto_project_switch": true,
/*
Debug Mode:
If you need to debug the jsonserver.py service for any reason, you
can configure the following options to make the plugin to connect
always to the same port in your local machine.
Procedure:
1. Set the debug_mode as true
2. Set the debug_port to your desired port
3. Close Sublime Text 3
4. cd to your Packages/Anaconda directory
5. start the jsonserver manually:
python -B anaconda_server/jsonserver.py -p test 9999 DEBUG
6. Start your Sublime Text 3 and
Then your anaconda plugin will use the configured server and you will
get debug messages in the terminal where you ran it
*/
"jsonserver_debug": false,
"jsonserver_debug_port": 9999,
/*
Default python interpreter.
This can (an should) be overriden byb project settings
*/
"python_interpreter": "python",
/*
Set those aas true if you don't want Sublime Text regular completions
*/
"suppress_word_completions": false,
"suppress_explicit_completions": false,
/*
If complete_parameters is true, anaconda will add function and class
parameters to its completions.
If complete_all_parameters is true, it will add all the possible
parameters, if it's false, it will add only required parameters
*/
"complete_parameters": false,
"complete_all_parameters": false,
/*
If you set the following option as true, anaconda will display the
signatures of the methods you are using while typying
*/
"display_signatures": false,
/*
The following set of options controls the pep8 autoformating behaviour
The full list of errors that can be fixed are:
E101 - Reindent all lines.
E111 - Reindent all lines.
E121 - Fix indentation to be a multiple of four.
E122 - Add absent indentation for hanging indentation.
E123 - Align closing bracket to match opening bracket.
E124 - Align closing bracket to match visual indentation.
E125 - Indent to distinguish line from next logical line.
E126 - Fix over-indented hanging indentation.
E127 - Fix visual indentation.
E128 - Fix visual indentation.
E129 - Indent to distinguish line from next logical line.
E201 - Remove extraneous whitespace.
E202 - Remove extraneous whitespace.
E203 - Remove extraneous whitespace.
E211 - Remove extraneous whitespace.
E221 - Fix extraneous whitespace around keywords.
E222 - Fix extraneous whitespace around keywords.
E223 - Fix extraneous whitespace around keywords.
E224 - Remove extraneous whitespace around operator.
E225 - Fix missing whitespace around operator.
E226 - Fix missing whitespace around operator.
E227 - Fix missing whitespace around operator.
E228 - Fix missing whitespace around operator.
E231 - Add missing whitespace.
E241 - Fix extraneous whitespace around keywords.
E242 - Remove extraneous whitespace around operator.
E251 - Remove whitespace around parameter '=' sign.
E261 - Fix spacing after comment hash.
E262 - Fix spacing after comment hash.
E271 - Fix extraneous whitespace around keywords.
E272 - Fix extraneous whitespace around keywords.
E273 - Fix extraneous whitespace around keywords.
E274 - Fix extraneous whitespace around keywords.
E301 - Add missing blank line.
E302 - Add missing 2 blank lines.
E303 - Remove extra blank lines.
E304 - Remove blank line following function decorator.
E401 - Put imports on separate lines.
E501 - Try to make lines fit within --max-line-length characters.
E502 - Remove extraneous escape of newline.
E701 - Put colon-separated compound statement on separate lines.
E702 - Put semicolon-separated compound statement on separate lines.
E703 - Put semicolon-separated compound statement on separate lines.
E711 - Fix comparison with None.
E712 - Fix comparison with boolean.
W191 - Reindent all lines.
W291 - Remove trailing whitespace.
W293 - Remove trailing whitespace on blank line.
W391 - Remove trailing blank lines.
E26 - Format block comments.
W6 - Fix various deprecated code (via lib2to3).
W602 - Fix deprecated form of raising exception.
*/
/*
Autoformat files on save
This option is disabled by default, AutoPEP8 is really slow and it get
the file buffer read only while its working in the background.
Use this at your risk
*/
"auto_formatting": false,
/*
Enable unsafe changes:
https://github.com/hhatto/autopep8#more-advanced-usage
Set it as 0 if you are unsure here
*/
"aggressive": 0,
/*
Do not fix the errors listed here:
*/
"autoformat_ignore":
[
],
/*
Fix only the errors listed here:
*/
"autoformat_select":
[
],
/*
Set the thresshold limit for McCabe complexity checker
*/
"mccabe_threshold": 7,
/*
Set is a false to disable Anaconda Linting totally
*/
"anaconda_linting": true,
/*
Sets the linting behaviour for anaconda:
"always" - Linting works always even while you are writting (in the background)
"load-save" - Linting works in file load and save only
"save-only" - Linting works in file save only
*/
"anaconda_linting_behaviour": "always",
/*
The minimum delay in seconds (fractional seconds are okay) before
a linter is run when the "sublimelinter" setting is true. This allows
you to have background linting active, but defer the actual linting
until you are idle. When this value is greater than the built in linting delay,
errors are erased when the file is modified, since the assumption is
you don't want to see errors while you type.
*/
"anaconda_linter_delay": 0.5,
// If true, anaconda draws gutter marks on line with errors
"anaconda_gutter_marks": true,
/*
If anaconda_gutter_marks is true, this determines what theme is used.
Theme 'basic' only adds dots and circles to gutter.
Other available themes are 'alpha', 'bright', 'dark', 'hard' and
'simple'. To see icons that will be used for each theme check
gutter_icon_themes folder in Anaconda package.
*/
"anaconda_gutter_theme": "basic",
/*
If 'outline' (default) anaconda will outline error lines
If 'fill' anconda will fill the lines
If 'none' anaconda will not draw anything on error lines
*/
"anaconda_linter_mark_style": "outline",
/*
If anaconda_linter_mark_style is set to none and this is set to false,
anaconda will not underline errors
If anaconda_linter_mark_style is set to anything else, this option is
ignored
*/
"anaconda_linter_underlines": true,
/*
Use PyLint instead of PyFlakes and PEP-8
**** WARNING ****
- If you set this value as true, PyFlakes and pep8 will not bet used
- PyLint does *NOT* support lint buffers that are not already saved in
the file system
**** WARNING ****
*/
"use_pylint": false,
// Set this to false to turn pep8 checking off completely
"pep8": true,
/*
If setted, the given file will be used as configuration for pep8
**** WARNING ****
- If this option is set to something different than false,
pep8_ignore and pep8_max_line_length will be silently ignored
**** WARNING ****
*/
"pep8_rcfile": false,
/*
A list of pep8 error numbers to ignore.
The list of error codes is in this file: https://github.com/jcrocholl/pep8/blob/master/pep8.py.
Search for "Ennn:", where nnn is a 3-digit number.
*/
"pep8_ignore":
[
],
// Maximum line length for pep8
"pep8_max_line_length": 79,
// Set this to true to turn pep257 checking on
"pep257": false,
/*
A list of pep257 error numbers to ignore.
The list can be found here: https://github.com/GreenSteam/pep257/#error-codes
D209 Multi-line docstring should end with 1 blank line is ignored by
default as it has been deprecated.
*/
"pep257_ignore":
[
"D209"
],
/*
You can ignore some of the "undefined name xxx"
errors (comes in handy if you work with post-processors, globals/builtins available only at runtime, etc.).
You can control what names will be ignored with the user setting "pyflakes_ignore".
Example:
"pyflakes_ignore":
[
"some_custom_builtin_o_mine",
"A_GLOBAL_CONSTANT"
],
*/
"pyflakes_ignore":
[
],
/*
Now is possible to ignore specific error types adding them on this
list, (just uncomment them)
*/
"pyflakes_explicit_ignore":
[
// "Redefined",
// "UnusedImport",
// "UndefinedName",
// "UndefinedLocal",
// "UnusedVariable,",
// "UndefinedExport",
// "DuplicateArgument",
// "RedefinedWhileUnused"
],
/*
If setted, the given file will be used as configuration for PyLint
**** WARNING ****
- If this option is set to something different than false,
pylint_ignore will be silently ignored
**** WARNING ****
*/
"pylint_rcfile": false,
/*
You can ignore specific PyLint error codes using this configuration.
We strongly suggest that you better configure your pylintrc file to
determine which type of error is important to you
*/
"pylint_ignore":
[
// "0201"
],
/*
Ordinarily pyflakes will issue a warning when 'from foo import *' is used,
but it is ignored since the warning is not that helpful. If you want to see this warning,
set this option to false.
*/
"pyflakes_ignore_import_*": true,
/*
Debug and development options
Use those options only for debugging and devleopment purposes, them can
and will slowdown your Sublime Text
anconda_debug can be set as: false or profiler
If this is set as profiler, Aanconda will run a profiler on autocompelte
and print it results in the Sublime Text console.
NOTE: cProfile can't be imported in all the platforms, at least no in
Linux, this is an already reported bug:
http://www.sublimetext.com/forum/viewtopic.php?f=3&t=13698
https://github.com/SublimeText/Issues/issues/127
*/
"anaconda_debug": false
}