Commit Graph

  • 569cb99ca7 Start scanning for indentation errors. Dave Halter 2017-07-19 18:45:58 +02:00
  • 5e65bd2aaf Remove xfail tests that didn't make any sense. Dave Halter 2017-07-19 18:15:23 +02:00
  • 78c371f73a Refactor the version info to use a tuple, always. Dave Halter 2017-07-19 09:09:33 +02:00
  • dc3b3158eb Move some code from one compatibility file to another. Dave Halter 2017-07-18 18:00:10 +02:00
  • 790bc459ed Make a proper recovery for only error statements in a suite. Dave Halter 2017-07-18 17:53:04 +02:00
  • 6ee986aa45 Remove some code that wasn't doing anything. Dave Halter 2017-07-17 08:49:02 +02:00
  • 837e9ca388 A paren wrongly used in __repr__. Dave Halter 2017-07-17 08:48:19 +02:00
  • 1a4539420d addtoken -> add_token. Dave Halter 2017-07-17 08:44:27 +02:00
  • e3f7427c99 Restructure the Python 2 grammar to be closer to the original Python 2 grammar in case of list comprehensions. Dave Halter 2017-07-16 22:14:15 +02:00
  • 688dfaad24 Make ellipsis work for the differences between 2 and 3. Dave Halter 2017-07-16 18:49:19 +02:00
  • 33344d3ce4 Docstring changes. Dave Halter 2017-07-14 19:30:35 +02:00
  • f6b3b1cc24 Make version a keyword only argument in load_grammar. Dave Halter 2017-07-14 18:28:03 +02:00
  • 1d0e982d89 Fix some stuff for Jedi. Dave Halter 2017-07-14 17:30:33 +02:00
  • d32a84e181 Fix some default/annotation stuff. Dave Halter 2017-07-14 02:20:26 +02:00
  • 9d10ceeff1 Give jedi a better API for tokenizing. Dave Halter 2017-07-13 17:25:35 +02:00
  • fcc6541f08 3.4 adaptions now everything in 3 is similar. Dave Halter 2017-07-13 08:59:40 +02:00
  • e47667efb5 Make the 3.5 grammar more similar to its original. Dave Halter 2017-07-13 08:57:31 +02:00
  • 18d46878a2 Make the 3.6 grammar more similar to the original grammar. Dave Halter 2017-07-13 08:53:58 +02:00
  • c6f18e42db Fix a py27 issue that was caused by changing grammars. Dave Halter 2017-07-13 08:46:52 +02:00
  • d1d019b3c0 Some small grammar changes for 2.7. Dave Halter 2017-07-13 08:44:25 +02:00
  • a647ee1f44 Finally fixed pretty much all the tests. Dave Halter 2017-07-12 23:11:04 +02:00
  • b1dabc8596 Add the each_version fixture to a lot more parser tests. Dave Halter 2017-07-12 23:09:21 +02:00
  • 161c51b050 Fix some issues. Dave Halter 2017-07-12 23:00:37 +02:00
  • 4ffac4727c The parse shortcut now supports a version argument. Dave Halter 2017-07-12 22:56:17 +02:00
  • b618c99b08 Octal fixes. Dave Halter 2017-07-12 22:28:54 +02:00
  • 70de06ed87 Fix annotations in grammar2.7. Dave Halter 2017-07-12 21:38:11 +02:00
  • d7d1d67828 Refactor some tests to make sure cross parsing versions works. Dave Halter 2017-07-12 21:32:16 +02:00
  • abc4852bd4 Write an abstraction to test if source code is valid for a certain python version or not. Dave Halter 2017-07-12 18:58:43 +02:00
  • d3115acb33 Refactor a parse call. Dave Halter 2017-07-12 10:03:48 +02:00
  • 75d41c09cd Trying to run more tests in all versions against all versions. Dave Halter 2017-07-12 09:37:47 +02:00
  • 9772d64360 Remove strange features in grammar27 that are not part of the official grammar. Dave Halter 2017-07-12 09:09:01 +02:00
  • e731eecdd8 Make the tokenizer version independent. Dave Halter 2017-07-11 23:29:44 +02:00
  • b6022c7a80 Add total_ordering for python 2.6. Dave Halter 2017-07-11 00:33:16 +02:00
  • c93546bfd9 Get tox -e py27 working. Dave Halter 2017-07-11 00:26:24 +02:00
  • dd7c12834e Clarify when using print() is the right use or not. Dave Halter 2017-07-11 00:11:25 +02:00
  • 20fdc18ec5 We can now also test certain problems with python 2. Dave Halter 2017-07-10 23:57:36 +02:00
  • 069e9b57f2 Fix an issue for python 2. Dave Halter 2017-07-10 23:57:18 +02:00
  • 679851dbf1 Make it possible to use certain python versions according to the file name of a normalizer issue file. Dave Halter 2017-07-10 23:50:17 +02:00
  • 65203d197a Another bom fix in the pep8 normalizer. Dave Halter 2017-07-10 23:40:30 +02:00
  • ff949d1061 Fix utf-8 bom positions. Dave Halter 2017-07-10 23:38:44 +02:00
  • 859c48170e Add the utf-8 bom to the prefix in the tokenizer. Dave Halter 2017-07-10 23:26:15 +02:00
  • b3923e65e8 Try to add syntax errors to pep8 normalizing. Dave Halter 2017-07-10 23:04:54 +02:00
  • 53cf408d99 Add some tests for python error listing. Dave Halter 2017-07-09 16:57:27 +02:00
  • ceed7f183e Make it possible to list errors easier in a Python tree. Dave Halter 2017-07-09 16:57:09 +02:00
  • 9899c703ea Fix a diff parser issue. Dave Halter 2017-07-09 11:55:23 +02:00
  • 5b5e4a0616 Generate error tokens in the tokenizer if the indentation is dedented wrongly. Dave Halter 2017-07-09 10:44:24 +02:00
  • 8ad37f6036 Move parsing the version around. Dave Halter 2017-07-09 00:49:23 +02:00
  • 37e128ff8f Remove unused code. Dave Halter 2017-07-09 00:29:46 +02:00
  • c28ec5f182 Move tokenize.py and token.py to the python folder. Dave Halter 2017-07-09 00:06:14 +02:00
  • ee1184e7c4 Get rid of error leafs early. Dave Halter 2017-07-08 23:16:52 +02:00
  • b8c79f0be5 Small refactoring. Dave Halter 2017-07-08 23:13:48 +02:00
  • 7198df85ba Remove issue if the previous leaf is an error leaf. Dave Halter 2017-07-08 23:12:08 +02:00
  • cdc2df7881 Small change. Dave Halter 2017-07-08 20:14:17 +02:00
  • 4777eeb89f Move analyse_non_prefix. Dave Halter 2017-07-08 19:50:27 +02:00
  • af38b3cb10 Some renames. Dave Halter 2017-07-08 19:39:25 +02:00
  • 0559beb343 Move some the normalizer code to the pep8 module. Dave Halter 2017-07-08 19:09:11 +02:00
  • 0486ed9a9c Remove the comment class that was not needed. Dave Halter 2017-07-08 19:06:46 +02:00
  • 93ee3e3146 Make some more stuff configurable. Dave Halter 2017-07-08 19:04:54 +02:00
  • 968ce4759a Move some stuff around to make it more flexible. Dave Halter 2017-07-08 19:00:03 +02:00
  • b1f9e17c5f Not in docstring that the normalize method is not public, yet. Dave Halter 2017-07-08 18:43:26 +02:00
  • b239b8427b Make normalize private for now. Dave Halter 2017-07-08 14:10:48 +02:00
  • 65168577cf Fix comment issues (E26x). Dave Halter 2017-07-08 13:57:39 +02:00
  • a5ea2f7add Rework some todos. Dave Halter 2017-07-08 12:12:53 +02:00
  • 3943618fe2 Remove E999 and replace them with todos. Dave Halter 2017-07-08 12:07:00 +02:00
  • 1e2abec7f2 Fix all tests. Finally. Dave Halter 2017-07-08 12:00:58 +02:00
  • 0846ad6337 Fix an issue with brackets on weird lines. Dave Halter 2017-07-07 09:57:52 +02:00
  • 521544ef12 Merge branch 'master' of github.com:davidhalter/parso Dave Halter 2017-07-07 00:55:56 +02:00
  • c951a24730 Some more fixes. Test run now with pytest -k 'not E12' under Python 3.5. Dave Halter 2017-07-07 00:55:46 +02:00
  • 5142870815 Cleanup some backslash node stuff. Dave Halter 2017-07-06 22:58:50 +02:00
  • b3f42a8920 Fix some more test details. Dave Halter 2017-07-06 21:58:24 +02:00
  • b2e35bc573 Add better line length checks (E501). Dave Halter 2017-07-06 17:39:23 +02:00
  • 507f190123 More newlines. Dave Halter 2017-07-06 02:07:25 +02:00
  • 89ed85d2e1 Add some newlines to avoid issues in other files. Dave Halter 2017-07-06 02:05:15 +02:00
  • 280f3edf6d Fix E392. Dave Halter 2017-07-06 01:46:52 +02:00
  • 0a76c45153 Finall E30x tests passing. Dave Halter 2017-07-06 01:30:09 +02:00
  • da39081d5a Fix another small decorator issues. Dave Halter 2017-07-06 01:14:35 +02:00
  • 339d30776a Some test modifications to get more passing. Dave Halter 2017-07-06 00:17:16 +02:00
  • da841adcb9 Fix the decorator blank line issues E304. Dave Halter 2017-07-06 00:14:36 +02:00
  • fdad958b64 Fix most newline issues. Dave Halter 2017-07-05 17:15:24 +02:00
  • 6d91bcefe6 Add some test files for E30x. Dave Halter 2017-07-04 08:58:06 +02:00
  • 2a38b607ac Fix some 302 and 301 tests. Dave Halter 2017-07-04 08:54:19 +02:00
  • 98cf76837b Fix all E303. Dave Halter 2017-07-03 19:08:30 +02:00
  • 2daeebac95 Remove the whitespace info class. Dave Halter 2017-07-02 23:57:53 +02:00
  • 14026d4c3e Fix a warning message. Dave Halter 2017-07-02 22:53:42 +02:00
  • 602dcb11d7 Get all tests passing except those E12* tests. Dave Halter 2017-07-02 22:50:37 +02:00
  • dd950392c8 Remove E999 for now, because those issues are not defined. Also change a few small things where issues were wrong. Dave Halter 2017-07-02 22:12:02 +02:00
  • 4d390742cd Better handling for E291 after newline (trailing whitespace). Dave Halter 2017-07-02 21:18:35 +02:00
  • d9ebb09e64 Add length checks for line lengths. Dave Halter 2017-07-02 20:17:55 +02:00
  • 3057d15a4d Fix some issues with backslashes. Dave Halter 2017-07-02 19:38:07 +02:00
  • 36a59a3d3b Starting to refactor the normalizer to make sure that comments are also checked for indentation. Dave Halter 2017-07-02 18:58:43 +02:00
  • 7a7ad2038d Trying to change the prefix parsing a bit. Dave Halter 2017-06-29 22:47:31 +02:00
  • 063d4b052e Some tests for E291. Dave Halter 2017-06-28 23:18:47 +02:00
  • d608b7ca7f One more E292 test. Dave Halter 2017-06-28 23:17:28 +02:00
  • ae4700b0d4 Add E292 (eof should end with newline) with tests. Dave Halter 2017-06-28 23:13:51 +02:00
  • e1e42d3d41 Add more E101 tests. Dave Halter 2017-06-28 19:49:14 +02:00
  • a3129ad8ef Add some tests for python3. Dave Halter 2017-06-28 18:24:58 +02:00
  • e47c9d72fa Add some utf-8 tests. Dave Halter 2017-06-28 18:13:57 +02:00
  • b4a2f2bb61 Add a latin1 test. Dave Halter 2017-06-28 18:11:32 +02:00
  • 31fd7c335f Fixed 231 issues. Dave Halter 2017-06-28 10:28:27 +02:00
  • 367a75d2c8 Proper handling of E251 / E252. Dave Halter 2017-06-28 10:15:51 +02:00