Dhanu-dynamic
f37a9f9feb
Ignore environment_path in loaded project files ( #2110 )
...
A .jedi/project.json can be part of a checked out repository, so honouring its environment_path let an untrusted file point Jedi at a binary to execute. Rather than trying to gate that binary (the ownership heuristic in _is_unix_safe_simple is meaningless on Windows, where st_uid is always 0), drop environment_path from loaded project files entirely, the same way load_unsafe_extensions is already ignored. It stays available when a Project is constructed directly by the user.
2026-09-29 13:58:51 +00:00
Dhanu-dynamic
112d255414
Do not trust code execution settings from .jedi/project.json ( #2108 )
...
get_default_project() loads the first .jedi/project.json above the analysed file, which can be part of a checked out repository. Its environment_path was executed with safe=False and its load_unsafe_extensions was honoured. Loaded projects now check the binary like find_virtualenvs and ignore load_unsafe_extensions.
2026-09-26 12:52:55 +00:00
Peter Law
0fcb4468e7
Fix or ignore lints in tests
2024-06-30 19:05:38 +01:00
Marcio Mazza
85c7f14562
Fix test where home could be a potential project
2022-09-01 13:01:27 -03:00
Dave Halter
6279791b24
Fix an issue with complete_search
2021-01-10 16:08:17 +01:00
Adrian Labbé
47e60107b2
Add tests for 'test_get_parent_dir_with_file' and 'test_is_potential_project'
2020-12-06 15:26:20 -03:00
Dave Halter
2f7d0ec42c
Project attributes are now read accessible
2020-08-01 18:26:26 +02:00
Dave Halter
401e8d3100
Fix issues with property searches
2020-07-20 01:40:25 +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
f4e537fd72
Remove a lot of sys.version_info references
2020-07-02 02:49:35 +02:00
Dave Halter
50b85153ce
Remove a lot of test references to Python 2/3.5
2020-07-02 00:17:21 +02:00
Dave Halter
7fd5c8af8f
Allow files for get_default_project, fixes #1552
2020-04-26 00:33:10 +02:00
Michał Górny
7ff76bb7d0
Sort test_project::test_search results to fix failures
...
Fixes #1542
2020-04-15 17:21:40 +02:00
Dave Halter
886dadaaff
Skip more tests for Python 2/3.5
2020-03-10 20:17:39 +01:00
Dave Halter
bedf3bff0e
Add Project.complete_search instead of the complete param
2020-03-10 08:31:15 +01:00
Dave Halter
75ae73ee97
Load -stubs packages properly in _load_python_module
2020-03-09 17:27:51 +01:00
Dave Halter
753440682e
Some further testing of code search with stubs
2020-03-08 15:12:57 +01:00
Dave Halter
53f39c88e4
Try to fix a few more stub issues in search
2020-03-08 15:02:00 +01:00
Dave Halter
d3e3021a3d
Care better about stubs for code search
2020-03-08 13:16:06 +01:00
Dave Halter
a5f7412296
Load stub modules if it's a stub
2020-03-08 11:51:39 +01:00
Dave Halter
58998748e3
Make it clear in search tests if a stub or a normal definition is expected
2020-03-07 20:43:57 +01:00
Dave Halter
6bddca011c
Listing modules is no longer done by a subprocess
2020-03-07 20:25:58 +01:00
Dave Halter
f147cb1133
Make it possible to get stdlib modules for project search
2020-03-07 19:42:27 +01:00
Dave Halter
c159b9debd
Get namespace package searches working
2020-03-07 17:14:47 +01:00
Dave Halter
eecdf31601
Make it possible to search folders __init__ files
2020-03-07 13:57:14 +01:00
Dave Halter
ed3564831c
Some minor test reworks
2020-03-06 14:28:48 +01:00
Dave Halter
8c1e518ab7
Make sure you can search for 'def something'
2020-03-06 14:27:29 +01:00
Dave Halter
c7a862ec19
Fix issues where references were identified as definitions
2020-03-06 14:24:57 +01:00
Dave Halter
6e3bd38600
Start merging efforts for project search and file search
...
First project tests are passing
2020-03-06 13:32:04 +01:00
Dave Halter
8ff2ea4b38
Make sure to not load unsafe modules anymore if they are not on the sys path, fixes #760
2020-01-31 13:09:28 +01:00
Dave Halter
a05628443e
Make sure serialization works for projects
2020-01-31 02:14:34 +01:00
Dave Halter
251ff447bc
Add added_sys_path to Project, fixes #1334
2020-01-31 00:08:24 +01:00
Dave Halter
38460ce9d7
Use complete instead of completions in test_api/
2019-12-20 16:16:01 +01:00
Dave Halter
03920502c4
infer_state -> inference_state
2019-08-16 11:44:30 +02:00
Dave Halter
a5dff65142
Evaluator -> InferState
2019-08-15 00:37:51 +02:00
Dave Halter
45dada9552
Fix interpeter project path
2019-08-05 00:43:37 +02:00
Dave Halter
467c2e5def
Merge branch 'master' into typeshed
...
There were quite a few conflicts, because there were two rewrites of the path
to dotted function.
2019-03-01 10:13:16 +01:00
Dave Halter
68f840de60
Refactor django path support
2018-01-24 19:13:05 +01:00