Dave Halter
f12ed2088a
Use pathlib for file ios, because the new parso is out
2020-08-05 00:52:50 +02:00
Dave Halter
2f7d0ec42c
Project attributes are now read accessible
2020-08-01 18:26:26 +02:00
Peter Law
403564315c
Reflow test to ensure trailing space is preserved
...
Many editors strip trailing space, so avoid using a multiline
string where the space is actually needed.
2020-07-21 22:44:43 +01:00
Peter Law
5e6138d16f
Update to flake8 3.8.x
...
In particular this improves support for detecting usage of various
type annotation usages and adds support for correctly parsing
type: ignore comments which contain a reason tag.
2020-07-21 21:34:58 +01:00
Dave Halter
401e8d3100
Fix issues with property searches
2020-07-20 01:40:25 +02:00
Dave Halter
784e965d3a
@property now returns Name.type == 'property', fixes muffinmad/anakin-language-server#15
2020-07-20 01:20:24 +02:00
Dave Halter
d9a90d5d5e
Remove a test that no longer made sense
2020-07-19 13:55:18 +02:00
Dave Halter
d78567f853
Fix a Python 3.9 issue on travis
2020-07-17 16:12:55 +02:00
Dave Halter
1ece7698c2
Merge branch 'master' into python3
2020-07-17 16:07:54 +02:00
Dave Halter
7851dff915
Properly negate with Interpreter, fixes #1636
2020-07-17 15:57:32 +02:00
Dave Halter
9957374508
Fix dict completions for inherited dicts, fixes #1631
2020-07-14 17:50:12 +02:00
Dave Halter
3ffe8475b8
Make sure the interpreter completions work better in Jupyter Notebook, fixes #1628
2020-07-12 22:20:06 +02:00
Dave Halter
396d7df314
Fix an issue with interpreter completion, see also #1628
2020-07-12 22:02:00 +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
5ab351dc8f
Remove unicode literals from code base
2020-07-02 10:43:14 +02:00
Dave Halter
f1366b8a74
Remove the u() unicode function
2020-07-02 10:35:39 +02:00
Dave Halter
332631434c
Remove some unnecessary utf-8 references
2020-07-02 03:30:41 +02:00
Dave Halter
5a912de937
Remove a few unicode references in tests
2020-07-02 03:18:48 +02:00
Dave Halter
6e184bca97
Remove most version_info.major usages
2020-07-02 03:00:01 +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
db28eee760
Remove py__version__
2020-07-02 02:30:16 +02:00
Dave Halter
0cd6a8f5cc
Remove is_py3 and is_py35
2020-07-02 02:23:33 +02:00
Dave Halter
782c561e86
Fix the compatibility docstring
2020-07-02 02:03:34 +02:00
Dave Halter
9838040ca3
Fix a TODO
2020-07-02 01:56:23 +02:00
Dave Halter
227cf00638
Remove the __builtin__ compatibility
2020-07-02 01:15:29 +02:00
Dave Halter
3262ad4350
Remove the scandir compatibility
2020-07-02 00:38:44 +02:00
Dave Halter
7e295d05a1
Remove some more Python 2/3.5 references
2020-07-02 00:25:00 +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
be184241fd
Add SyntaxError.get_message
2020-06-16 08:51:54 +02:00
Dave Halter
3a0a484fcb
Try to get get the tests for Python 3.9 passing, fixes #1608
2020-06-10 09:54:32 +02:00
muffinmad
404661f361
Replace Script by timedelta in the test
2020-06-05 17:44:59 +03:00
muffinmad
1e58f9a15c
Test both named params are found
2020-06-05 15:28:22 +03:00
muffinmad
8705149619
Use pytest.mark.parametrize
2020-06-03 17:20:23 +03:00
muffinmad
782dedd439
Get references in the current module only
2020-06-03 16:35:28 +03:00
muffinmad
7459d67fee
Test local references in some other cases
2020-05-22 13:24:39 +03:00
muffinmad
741097827d
Get references in the current module only
2020-05-21 19:51:13 +03:00
Dave Halter
8fdf16b316
Fix an error of get_definition_end_pos, see #1584
2020-05-18 01:44:51 +02:00
Dave Halter
fa6194c0a9
Refactor test_definition_start_end_position to use parametrize
2020-05-18 01:41:07 +02:00
Dave Halter
2d17b81313
definition_end_position -> get_definition_end_position, same for start, see #1584
2020-05-18 01:18:22 +02:00
Dave Halter
cb1730f628
Merge pull request #1584 from pappasam/get_definition_position
...
Add BaseName.definition_[start,end]_position
2020-05-18 01:14:00 +02:00
Sam Roeca
d848047012
Add unit tests for definition_[start,end]_position
2020-05-17 11:48:28 -04:00
Dave Halter
d16355fcf2
Fix tests in Python 2
2020-05-16 17:47:33 +02:00
Dave Halter
2fb072532a
Skip another non-important Python 2 test that fails on Windows
2020-05-16 01:25:15 +02:00
Dave Halter
384b2ad014
Fix an about dict completions
2020-05-16 00:46:46 +02:00
Dave Halter
381fbeda6a
Make the diff nicer if there is no ending newline, fixes #1581
2020-05-14 00:20:20 +02:00
Dave Halter
3104443212
Merge pull request #1579 from muffinmad/pseudotreenameclass
...
Return 'class' as _PseudoTreeNameClass.type (fix #1578 )
2020-05-13 18:59:05 +02:00
muffinmad
16e2b86bcf
Fix test
2020-05-13 01:18:47 +03:00
Dave Halter
7f25e28d89
Fix tuple issue in 3.6
2020-05-12 23:33:06 +02:00
muffinmad
7ccee7d8fc
Add test _PseudoTreeNameClass.type == 'class'
2020-05-12 23:28:46 +03:00