Commit Graph

8025 Commits

Author SHA1 Message Date
David Halter
6b57f7ce48 remove pytest-cov from tox.ini requirements 2013-05-13 12:35:09 +04:30
David Halter
05eb62eea5 use coverage instead of pytest-cov 2013-05-13 12:29:56 +04:30
David Halter
fbde16450b authors change 2013-05-13 09:20:08 +04:30
David Halter
15885e8685 preload_module function for IDEs, to control which modules to load on startup, refs #102 2013-05-13 09:13:59 +04:30
Takafumi Arakaki
3d6ef88795 Add simple PYTHONSTARTUP file 2013-05-12 08:21:55 +02:00
Takafumi Arakaki
52b3a326c4 Revert changes in jedi/modules.py in this branch 2013-05-11 22:01:48 +02:00
Takafumi Arakaki
19b3fef0c5 Remove fast option from api.Script 2013-05-11 21:59:39 +02:00
Takafumi Arakaki
a870fece0f Use fast parser in api.Interpreter 2013-05-11 21:47:55 +02:00
Takafumi Arakaki
2846fe980b Remove api._quick_complete 2013-05-11 21:40:00 +02:00
Takafumi Arakaki
08f8dcfae4 Do not repeat defaults in Interpreter.__init__ 2013-05-11 21:37:53 +02:00
Takafumi Arakaki
6af2a0677d Compute default line/column/source_path in api.Script 2013-05-11 21:36:43 +02:00
Takafumi Arakaki
633f582184 Add jedi.interpret.ObjectImporter
and move scope manipulation functions in api.Interpreter to there.
2013-05-11 21:33:57 +02:00
David Halter
b5b625ea14 forgot to include the changelog in the manifest 2013-05-11 17:07:55 +04:30
David Halter
977f4871d6 added changelog 2013-05-11 16:55:02 +04:30
David Halter
7d4fe30c63 change autocomplete screenshot, which contained wrong information for a long time now. 2013-05-11 14:30:07 +04:30
David Halter
29575b2562 add some testing notes of the readme to the documentation 2013-05-11 14:00:15 +04:30
David Halter
3681adef78 improve README 2013-05-11 13:53:00 +04:30
David Halter
b2f2b7a779 update installation docs 2013-05-11 11:29:40 +04:30
David Halter
f30b3416e8 remove VERSION file in favor of a jedi.__version__ 2013-05-11 11:10:01 +04:30
David Halter
ad56b6cc89 fix title length (docstr stuff) 2013-05-11 11:02:13 +04:30
David Halter
3a7c8af87f also normal imports should return the right user_stmt, similar case than #137 2013-05-09 12:16:54 +04:30
David Halter
f3a4439285 import end_pos calculated differently, fixes #137 2013-05-09 11:54:08 +04:30
David Halter
4b4681d285 re-enable test, probably related to #131 2013-05-08 00:01:22 +04:30
David Halter
f4e8972157 end_pos issues, fixes #150 2013-05-07 23:55:58 +04:30
David Halter
0621a276b9 modules in modules (only possible with c_builtins) are now completable. however it's kind of hackish, I'm using a class instead of a real module, because this is the easiest way for jedi, fixes #126 2013-05-07 22:57:23 +04:30
David Halter
6cb0b1ed16 bump version to 0.6 2013-05-07 21:03:04 +04:30
Takafumi Arakaki
17f5b9a79d Fix test failure in Python 3.3
There is a new method introduced in Python 3.3:
http://docs.python.org/3/library/datetime.html#datetime.datetime.timestamp
2013-05-04 18:10:20 +02:00
Takafumi Arakaki
89edb73978 Fix failure due to rebase 2013-05-04 17:58:02 +02:00
Takafumi Arakaki
3d0458bca9 Export Interpreter class to top-level namespace 2013-05-04 17:50:42 +02:00
Takafumi Arakaki
e8914e7856 Document api.Interpreter 2013-05-04 17:45:34 +02:00
Takafumi Arakaki
8fc396371c Respect settings.fast_parser 2013-05-04 17:44:59 +02:00
Takafumi Arakaki
c2e9ccda2b Fix failing test: args for ModuleWithCursor 2013-05-04 17:44:59 +02:00
Takafumi Arakaki
dc47d15de0 Use locals() for tests in TestInterpreterAPI
It is better to check that Interpreter does not fail with the
real name space.  Previously the doctest using locals() failed
because of the bug in _import_raw_namespace.
2013-05-04 17:44:59 +02:00
Takafumi Arakaki
a93016db1b Python 2.5 compatibility fix 2013-05-04 17:44:59 +02:00
Takafumi Arakaki
af10891096 Document api.Interpreter._genname 2013-05-04 17:44:59 +02:00
Takafumi Arakaki
fc79f0e258 Support case like from os.path import join as pjoin 2013-05-04 17:44:59 +02:00
Takafumi Arakaki
6fb42e5f4b Document _import_raw_namespace more 2013-05-04 17:44:59 +02:00
Takafumi Arakaki
12ac71b1fd Document api.Interpreter 2013-05-04 17:44:59 +02:00
Takafumi Arakaki
b4e3d1d65d Fix test_complete_raw_instance example
'dt.strftime("%Y").up' does not work even if with `api.Script`.
Change it to the one that can be handled by Jedi.
2013-05-04 17:44:59 +02:00
Takafumi Arakaki
45cad4c83b Fake imports should locate before fake statements 2013-05-04 17:44:59 +02:00
Takafumi Arakaki
06c03cafa2 Implement the case where raw object is an instance
There is still a bug in this implementation.
The corresponding test fails.
2013-05-04 17:44:58 +02:00
Takafumi Arakaki
11abd92d2b Support alias in _make_fakeimport 2013-05-04 17:44:58 +02:00
Takafumi Arakaki
cf48d1272d Use proper interface to add fake Import object 2013-05-04 17:44:58 +02:00
Takafumi Arakaki
17770356e2 Implement the case where raw object is a module
Previously failing test_complete_raw_module is passed.
2013-05-04 17:44:58 +02:00
Takafumi Arakaki
fb197c42ab Add tests for api.Interpreter (2/3 fail) 2013-05-04 17:44:58 +02:00
Takafumi Arakaki
3266aa2d00 Improve api.Interpreter docstring 2013-05-04 17:43:37 +02:00
Takafumi Arakaki
842fbfce8a Add api.Interpreter: Jedi API for Python REPLs 2013-05-04 17:43:37 +02:00
David Halter
ae0dd1d72c fix docstr issue in the wrong place, fixes #210 2013-05-04 19:51:42 +04:30
David Halter
2e0d0bb4f5 test for #210 2013-05-04 13:44:15 +04:30
David Halter
698ee7af28 removed an old part_parser test 2013-05-03 21:35:28 +04:30