wutingjia
be6df62434
filter imported names during completion
2024-10-17 19:20:39 +08:00
Dave Halter
a6cf2c338a
Remove part of a test that is annoying to develop
2022-11-11 17:44:49 +01:00
Joseph Birkner
a340fe077e
Fixed ZIP completion.
2021-04-29 09:52:08 +02:00
Dave Halter
8ef2ce232c
Hopefully fix a Windows issue
2021-01-02 18:11:59 +01:00
Dave Halter
b89f9445c2
Merge pull request #1684 from davidhalter/relative-import
...
Relative imports should work even if they are not within the project
2020-12-22 23:18:46 +01:00
Dave Halter
bc4f6ed9dd
Merge branch 'master' into relative-import
2020-12-12 12:15:13 +01:00
Leo Ryu
fd435a7bbb
Check if string_names is None before returning string_names ( #1708 )
...
* Check if string is None before using string_names
* Add test asserting None string_names returns an empty list
* Remove whitespace to pass flake8
* Add name to authors.txt
Co-authored-by: Leo Ryu <leo@episci.com >
2020-12-12 12:13:31 +01:00
Dave Halter
bf310c780c
Fix a recursion on imports, fixes #1677
2020-10-23 21:04:36 +02:00
Dave Halter
5f2f4af851
Update test/test_inference/test_imports.py
...
Co-authored-by: Peter Law <PeterJCLaw@gmail.com >
2020-10-21 22:32:33 +02:00
Dave Halter
78e87d0ab8
Relative imports should work even if they are not within the project
2020-10-20 01:00:22 +02:00
Dave Halter
f12ed2088a
Use pathlib for file ios, because the new parso is out
2020-08-05 00:52:50 +02:00
Dave Halter
27603f9780
Reenable a test for nested imports
2020-07-19 13:57:52 +02:00
Dave Halter
480a464179
Implement all remaining Path issues and use it instead of strings
2020-07-12 01:14:00 +02:00
Dave Halter
0c1ba1b305
Move the importing of modules out of compatibility
2020-07-02 10:51:49 +02:00
Dave Halter
5ab351dc8f
Remove unicode literals from code base
2020-07-02 10:43:14 +02:00
Dave Halter
188fdcd34f
Remove the skip_python2 fixture
2020-07-02 02:52:24 +02:00
Dave Halter
f4e537fd72
Remove a lot of sys.version_info references
2020-07-02 02:49:35 +02:00
Dave Halter
227cf00638
Remove the __builtin__ compatibility
2020-07-02 01:15:29 +02:00
Dave Halter
d6d9286242
Get rid of deprecations in tests
2020-03-21 02:15:57 +01:00
Dave Halter
7247c32990
Refactor load_module_from_path to be simpler
2020-03-09 17:40:14 +01:00
Dave Halter
6e63799a7d
Fix a test that picked up the wrong paths
2020-02-06 22:51:40 +01:00
Dave Halter
14ac0512a9
Get rid of cwd modifications in tests
2020-02-06 01:47:39 +01:00
Dave Halter
4a1d9a9116
Use project instead of sys_path parameter in tests
2020-01-30 21:02:47 +01:00
Dave Halter
ceccbf3678
Make the Project API public, fixes #778
2020-01-30 19:24:16 +01:00
Dave Halter
9d7858eb3a
Fix remaining tests
2020-01-22 00:36:30 +01:00
Dave Halter
26f0fa9eb0
Move get_module_contexts_containing_name to the references module
2020-01-17 22:51:09 +01:00
Dave Halter
9c1063c35a
Use the proper fixture
2020-01-12 23:58:49 +01:00
Dave Halter
cc34c7d4f3
Move not_in_sys_path tests to examples
2020-01-12 00:55:01 +01:00
Dave Halter
f3919823fb
Moved zipped imports test files
2020-01-12 00:43:36 +01:00
Dave Halter
8459b02a98
Move flask tests to examples folder
2020-01-11 22:01:33 +01:00
Dave Halter
0931c5492d
Fix tests
2019-12-27 13:30:53 +01:00
Dave Halter
82ed28955d
Fix tests
2019-12-25 15:02:35 +01:00
Dave Halter
f3c8bc10f5
Keyword completion after ... should not work, fixes davidhalter/jedi-vim#506
2019-12-25 14:44:25 +01:00
Dave Halter
adff6d34a4
goto_assignment -> goto everywhere where it was left
2019-12-20 19:15:41 +01:00
Dave Halter
d7d9c9642a
Don't use goto_definitions anymore, use infer
2019-12-20 19:06:24 +01:00
Dave Halter
2cc898ba35
Get rid of completions in tests
2019-12-20 16:54:51 +01:00
Dave Halter
8a26a23884
Make is_package a function and call it consistently
2019-12-01 19:31:31 +01:00
Dave Halter
86071dda54
Use a different sys path for import completions and import type inference
...
Fix tests of the #1451 pull request
2019-12-01 00:12:19 +01:00
Dave Halter
39b294e085
Fix some interpreter issues
2019-08-20 09:09:19 +02:00
Dave Halter
03920502c4
infer_state -> inference_state
2019-08-16 11:44:30 +02:00
Dave Halter
600272366f
parent_value -> parent_context
2019-08-15 09:36:46 +02:00
Dave Halter
ad4f546aca
context -> value
2019-08-15 01:23:06 +02:00
Dave Halter
a5dff65142
Evaluator -> InferState
2019-08-15 00:37:51 +02:00
Dave Halter
3b4f292464
Move the evaluate package to inference
2019-08-15 00:14:26 +02:00
Dave Halter
e4d1e5455f
test_evaluate -> test_inference
2019-08-14 23:56:44 +02:00