Commit Graph

319 Commits

Author SHA1 Message Date
Dave Halter
d3115acb33 Refactor a parse call. 2017-07-12 10:03:48 +02:00
Dave Halter
75d41c09cd Trying to run more tests in all versions against all versions. 2017-07-12 09:37:47 +02:00
Dave Halter
9772d64360 Remove strange features in grammar27 that are not part of the official grammar. 2017-07-12 09:09:01 +02:00
Dave Halter
e731eecdd8 Make the tokenizer version independent. 2017-07-11 23:29:44 +02:00
Dave Halter
b6022c7a80 Add total_ordering for python 2.6. 2017-07-11 00:33:26 +02:00
Dave Halter
c93546bfd9 Get tox -e py27 working. 2017-07-11 00:26:24 +02:00
Dave Halter
dd7c12834e Clarify when using print() is the right use or not. 2017-07-11 00:11:25 +02:00
Dave Halter
20fdc18ec5 We can now also test certain problems with python 2. 2017-07-10 23:57:36 +02:00
Dave Halter
069e9b57f2 Fix an issue for python 2. 2017-07-10 23:57:18 +02:00
Dave Halter
679851dbf1 Make it possible to use certain python versions according to the file name of a normalizer issue file. 2017-07-10 23:50:17 +02:00
Dave Halter
65203d197a Another bom fix in the pep8 normalizer. 2017-07-10 23:40:30 +02:00
Dave Halter
ff949d1061 Fix utf-8 bom positions. 2017-07-10 23:38:44 +02:00
Dave Halter
859c48170e Add the utf-8 bom to the prefix in the tokenizer. 2017-07-10 23:26:15 +02:00
Dave Halter
b3923e65e8 Try to add syntax errors to pep8 normalizing. 2017-07-10 23:04:54 +02:00
Dave Halter
53cf408d99 Add some tests for python error listing. 2017-07-09 16:57:27 +02:00
Dave Halter
ceed7f183e Make it possible to list errors easier in a Python tree. 2017-07-09 16:57:09 +02:00
Dave Halter
9899c703ea Fix a diff parser issue. 2017-07-09 11:55:23 +02:00
Dave Halter
5b5e4a0616 Generate error tokens in the tokenizer if the indentation is dedented wrongly. 2017-07-09 10:44:24 +02:00
Dave Halter
8ad37f6036 Move parsing the version around. 2017-07-09 00:49:23 +02:00
Dave Halter
37e128ff8f Remove unused code. 2017-07-09 00:29:46 +02:00
Dave Halter
c28ec5f182 Move tokenize.py and token.py to the python folder. 2017-07-09 00:06:14 +02:00
Dave Halter
ee1184e7c4 Get rid of error leafs early. 2017-07-08 23:16:52 +02:00
Dave Halter
b8c79f0be5 Small refactoring. 2017-07-08 23:13:48 +02:00
Dave Halter
7198df85ba Remove issue if the previous leaf is an error leaf. 2017-07-08 23:12:08 +02:00
Dave Halter
cdc2df7881 Small change. 2017-07-08 20:14:17 +02:00
Dave Halter
4777eeb89f Move analyse_non_prefix. 2017-07-08 19:50:27 +02:00
Dave Halter
af38b3cb10 Some renames. 2017-07-08 19:39:25 +02:00
Dave Halter
0559beb343 Move some the normalizer code to the pep8 module. 2017-07-08 19:09:11 +02:00
Dave Halter
0486ed9a9c Remove the comment class that was not needed. 2017-07-08 19:06:46 +02:00
Dave Halter
93ee3e3146 Make some more stuff configurable. 2017-07-08 19:04:54 +02:00
Dave Halter
968ce4759a Move some stuff around to make it more flexible. 2017-07-08 19:00:03 +02:00
Dave Halter
b1f9e17c5f Not in docstring that the normalize method is not public, yet. 2017-07-08 18:43:26 +02:00
Dave Halter
b239b8427b Make normalize private for now. 2017-07-08 14:10:48 +02:00
Dave Halter
65168577cf Fix comment issues (E26x). 2017-07-08 13:57:39 +02:00
Dave Halter
a5ea2f7add Rework some todos. 2017-07-08 12:12:53 +02:00
Dave Halter
3943618fe2 Remove E999 and replace them with todos. 2017-07-08 12:07:00 +02:00
Dave Halter
1e2abec7f2 Fix all tests. Finally. 2017-07-08 12:00:58 +02:00
Dave Halter
0846ad6337 Fix an issue with brackets on weird lines. 2017-07-07 09:57:52 +02:00
Dave Halter
521544ef12 Merge branch 'master' of github.com:davidhalter/parso 2017-07-07 00:55:56 +02:00
Dave Halter
c951a24730 Some more fixes. Test run now with pytest -k 'not E12' under Python 3.5. 2017-07-07 00:55:46 +02:00
Dave Halter
5142870815 Cleanup some backslash node stuff. 2017-07-06 22:58:50 +02:00
Dave Halter
b3f42a8920 Fix some more test details. 2017-07-06 21:58:24 +02:00
Dave Halter
b2e35bc573 Add better line length checks (E501). 2017-07-06 17:39:23 +02:00
Dave Halter
507f190123 More newlines. 2017-07-06 02:07:25 +02:00
Dave Halter
89ed85d2e1 Add some newlines to avoid issues in other files. 2017-07-06 02:05:15 +02:00
Dave Halter
280f3edf6d Fix E392. 2017-07-06 01:46:52 +02:00
Dave Halter
0a76c45153 Finall E30x tests passing. 2017-07-06 01:30:09 +02:00
Dave Halter
da39081d5a Fix another small decorator issues. 2017-07-06 01:14:35 +02:00
Dave Halter
339d30776a Some test modifications to get more passing. 2017-07-06 00:17:16 +02:00
Dave Halter
da841adcb9 Fix the decorator blank line issues E304. 2017-07-06 00:14:36 +02:00