1
0
forked from VimPlug/jedi
Commit Graph

215 Commits

Author SHA1 Message Date
Dave Halter
06702d2a40 Move the python parser. 2017-03-16 08:40:19 +01:00
Dave Halter
375749c5c3 Small restructuring. 2017-03-15 08:56:49 +01:00
Dave Halter
97fc3bc23c Refactored the parser calls. Now it's possible to use jedi.parser.python.parse to quickly parse something. 2017-03-14 00:38:58 +01:00
daniel
5513f72987 added support for implicit ns packages and added tests 2017-02-23 23:53:14 +01:00
Dave Halter
b6e61133d8 Move the tests for the last PR #848. 2017-02-04 18:11:14 +01:00
Mathias Rav
37d7b85ed1 Add tests for decorator completion 2017-02-04 18:05:15 +01:00
Dave Halter
1edccbe2c3 Improve literal tests. 2017-01-08 19:52:21 +01:00
Dave Halter
7300f3e7ef Fix issues with Python 3.6's f strings and underscores in numbers. 2017-01-08 19:39:14 +01:00
Dave Halter
ae8e43d3c7 Move get_node() to tree_node and replace all the custom classdefs/funcdefs. 2017-01-05 23:43:12 +01:00
Dave Halter
55ec47f15f Test module attributes. 2017-01-04 18:32:16 +01:00
Dave Halter
5b9e5f96aa Merge with master. 2017-01-02 13:05:45 +01:00
Dave Halter
c6248ae169 Some testing fixes that were broken with the few previous commits. 2016-12-06 18:18:53 +01:00
Dave Halter
6940900c58 A lot more fixes - fix all evaluate integration tests. 2016-12-03 22:17:38 +01:00
Dave Halter
ee1f077014 Some test refactorings. 2016-12-03 14:32:00 +01:00
Daniel Hahler
f7f966805f sys_path: prepend/prefer egg-link files
With `pip install -e` the generated .egg-link file gets preferred over
any normally installed distribution, and `pip uninstall` will first
remove the egg-link before the normal package.
2016-10-14 14:18:09 +02:00
Dave Halter
6440e33512 Fix an issue with magic methods on classes. Fixes #461. 2016-07-31 23:42:16 +02:00
scribu
4fbde0001a add test for namespaced packages 2016-07-29 08:31:21 +02:00
Dmitry Sadovnychyi
60484707a0 Add support for ZIP and EGG packages in imports 2016-07-25 20:29:02 +08:00
Dave Halter
5280f567f9 The docstring of import completions was wrong.
This is fixed now. However, since this might massively decrease performance,
it's not enabled by default. You can enable it with `docstring(fast=False)`
(see test changes), but I wouldn't recommend it at this point.

Fixes #656.
2016-07-09 01:04:15 +02:00
Dave Halter
8e67facecc Refactoring: call_of_name -> call_of_leaf. 2016-06-21 18:42:20 +02:00
Dave Halter
653f247a42 Fix a goto_definitions test. 2016-06-13 18:27:39 +02:00
Dave Halter
cb7ee00c75 Forgot to include precedence tests. 2016-01-07 10:43:31 +01:00
Dave Halter
c15551ccc1 Errortokens should also make the parser fail in the normal parser. 2015-12-20 23:11:52 +01:00
Dave Halter
5791860861 Actual forward reference annotations are working pretty smooth now. 2015-12-20 22:57:41 +01:00
Dave Halter
c4906e0e3f Rework the parser so we can use arbitrary start nodes of the syntax.
This also includes a rework for error recovery in the parser. This is now just possible for file_input parsing, which means for full files.
Includes also a refactoring of the tokenizer. No more do we have to add an additional newline, because it now works correctly (removes certain confusion.
2015-12-20 22:25:41 +01:00
Dave Halter
23f40d8998 Merge branch 'linter' of https://github.com/reinhrst/jedi into pep484
Conflicts:
	AUTHORS.txt
2015-12-17 23:46:20 +01:00
Dave Halter
cc3c538d9d Merge branch 'buildout-unicode-decode-error' of https://github.com/mfussenegger/jedi into linter 2015-12-17 12:50:26 +01:00
Mathias Fussenegger
e0947a04eb don't fail on UnicodeDecodeError in buildout script detection
This fixes #650
2015-12-13 21:50:09 +01:00
Claude
5a8c46d509 seperate parser and testing code 2015-12-13 21:13:20 +01:00
Dave Halter
98b1845784 Remove evaluator param from py__mro__. 2015-12-10 16:12:43 +01:00
Dave Halter
e23f453a11 Fix all remaining issues from the compiled refactoring except static analysis. 2015-12-10 01:48:08 +01:00
Dave Halter
306d274a3d Merge dev into linter. 2015-11-10 21:52:18 +01:00
Dave Halter
84c43bf2dc Correct issues with slices and some more subtle bugs. 2015-11-01 21:30:41 +01:00
Dave Halter
ee51b0a62f More issues from the list of types to set of types conversion. 2015-10-30 10:32:17 +01:00
immerrr
cc139e8f70 evaluate.site: copy/adapt site-packages related functionality from stdlib 2015-10-26 13:03:42 +03:00
immerrr
fb592ad028 test_imports: add test to ensure caching works with sys_path 2015-10-26 13:03:42 +03:00
immerrr
90a08794ba test_imports: use sys_path 2015-10-26 13:03:42 +03:00
immerrr
da4dbe81a9 sys_path: order egg-link files for reproducible test results 2015-10-26 13:03:42 +03:00
immerrr
f500457100 sample_venvs: exclude venvs dir from py.test discovery 2015-10-26 13:03:42 +03:00
immerrr
4eb3cf7921 Improve virtualenv support & egg-link resolution
- add sys_path= kwarg to Script & Evaluator constructors

- store sys_path for each evaluator instance

- replace get_sys_path with get_venv_path

- get_venv_path: use addsitedir to load .pth extension files

- get_venv_path: look for egg-link files in all directories in path
2015-10-26 13:03:42 +03:00
Dave Halter
f77712ddf1 Test to assure that imports are not loaded twice. 2015-10-10 19:49:40 +02:00
Dave Halter
a014d4fd38 Fix a bug in call_of_name.
It was possible to get a NAME(x) result when calling call_of_name on x, which shouldn't happen. It should just return x.
2015-06-29 11:27:10 +02:00
Dave Halter
47d468a9bc forgot to include test_evaluate/not_in_sys_path files. 2015-04-27 17:16:43 +02:00
Dave Halter
06d134a7c1 Finished changing the import logic. The sys.path calculations within Jedi are clearer now. 2015-04-25 22:45:08 +02:00
Dave Halter
7a22d374ca Merge branch 'dev' of github.com:davidhalter/jedi into dev 2015-04-09 16:17:30 +02:00
Dave Halter
a9d3df9b5e Replace the threading.Thread tests in docstrings with random.Random tests, because that might work smother in the travis tests. Don't know why it broke there. 2015-04-09 16:17:16 +02:00
Mathias Fussenegger
67d9fbca81 run buildout detection only once per buildout script
in order to avoid running into the max recursion limit.
2015-04-09 08:51:25 +02:00
Dave Halter
7773859305 Write the tests for init extension modules (#472). 2015-04-08 02:54:35 +02:00
Dave Halter
474d390220 Use imp.get_suffixes to deal with __init__ files that are not .py files but .so etc. fixes #472 2015-04-08 02:41:59 +02:00
Dave Halter
eb146adcc1 Modules that are not importable shouldn't cause Jedi to stop working (just issue a warning). Fixes #468, #71. 2015-03-06 11:13:04 +01:00