Commit Graph
100 Commits
Author SHA1 Message Date
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
Dave Halter fdad958b64 Fix most newline issues. 2017-07-05 17:15:24 +02:00
Dave Halter 6d91bcefe6 Add some test files for E30x. 2017-07-04 08:58:06 +02:00
Dave Halter 2a38b607ac Fix some 302 and 301 tests. 2017-07-04 08:54:19 +02:00
Dave Halter 98cf76837b Fix all E303. 2017-07-03 19:08:30 +02:00
Dave Halter 2daeebac95 Remove the whitespace info class. 2017-07-02 23:57:53 +02:00
Dave Halter 14026d4c3e Fix a warning message. 2017-07-02 22:53:42 +02:00
Dave Halter 602dcb11d7 Get all tests passing except those E12* tests.
You can reproduce this with "pytest -k 'not E12'".
2017-07-02 22:50:37 +02:00
Dave Halter dd950392c8 Remove E999 for now, because those issues are not defined. Also change a few small things where issues were wrong. 2017-07-02 22:12:02 +02:00
Dave Halter 4d390742cd Better handling for E291 after newline (trailing whitespace). 2017-07-02 21:18:35 +02:00
Dave Halter d9ebb09e64 Add length checks for line lengths. 2017-07-02 20:17:55 +02:00
Dave Halter 3057d15a4d Fix some issues with backslashes. 2017-07-02 19:38:07 +02:00
Dave Halter 36a59a3d3b Starting to refactor the normalizer to make sure that comments are also checked for indentation.
Using a linked list now for the indentation stack.
2017-07-02 18:58:43 +02:00
Dave Halter 7a7ad2038d Trying to change the prefix parsing a bit. 2017-06-29 22:47:31 +02:00
Dave Halter 063d4b052e Some tests for E291. 2017-06-28 23:18:47 +02:00
Dave Halter d608b7ca7f One more E292 test. 2017-06-28 23:18:30 +02:00
Dave Halter ae4700b0d4 Add E292 (eof should end with newline) with tests. 2017-06-28 23:13:51 +02:00
Dave Halter e1e42d3d41 Add more E101 tests. 2017-06-28 19:49:14 +02:00
Dave Halter a3129ad8ef Add some tests for python3. 2017-06-28 18:24:58 +02:00
Dave Halter e47c9d72fa Add some utf-8 tests. 2017-06-28 18:13:57 +02:00
Dave Halter b4a2f2bb61 Add a latin1 test. 2017-06-28 18:11:32 +02:00
Dave Halter 31fd7c335f Fixed 231 issues. 2017-06-28 10:28:27 +02:00
Dave Halter 367a75d2c8 Proper handling of E251 / E252. 2017-06-28 10:15:51 +02:00
Dave Halter d6f8e3de4f Add all the E27 issues. 2017-06-27 10:05:04 +02:00
Dave Halter a341af1f81 Finally fix most of the issues in E22. Huge amounts of work. 2017-06-27 09:55:18 +02:00
Dave Halter 6bea7094c8 Add E211. 2017-06-23 09:49:18 +02:00
Dave Halter 2470f54baf Fix the E20 errors. 2017-06-23 09:37:02 +02:00
Dave Halter 97aebe4aa0 Add some more tests. 2017-06-21 17:25:57 +02:00
Dave Halter e66b62d1e1 Better backslash nodes that allow other alignments in case of expr_stmt. 2017-06-21 17:25:00 +02:00
Dave Halter cd1b676c7e A few tests that should mostly pass. 2017-06-21 09:47:43 +02:00
Dave Halter 9081cf55fb Decided how to indent stuff after keyword arguments and in dict literals. 2017-06-21 09:47:24 +02:00
Dave Halter c11dd6b5aa Start fixing more problems with hanging indents. 2017-06-16 09:43:09 +02:00
Dave Halter 98fbbaf945 Finally prepared the E12_second file to use it. 2017-06-15 19:32:11 +02:00
Dave Halter 7a758dabd8 Don't add issues if we're in an error node. 2017-06-15 19:31:23 +02:00
Dave Halter 0f2e6f9e22 Rework the test suite to make clearer where errors originate. 2017-06-15 19:30:48 +02:00
Dave Halter d5e9ecea12 Figuring out how indentation of chained brackets works. 2017-06-15 01:26:38 +02:00
Dave Halter c9fe2596c1 Add a first file for the tests of E12x. 2017-06-14 23:11:31 +02:00
Dave Halter cdc3e0a731 Modify the license file a bit for the normalizer issue files to make my contributions clear. 2017-06-14 18:31:18 +02:00
Dave Halter da779e09b1 Further progress in indentation issues. 2017-06-14 18:12:15 +02:00
Dave Halter 005e5f403a Fix some stuff about backslashes. 2017-06-13 01:23:08 +02:00
Dave Halter 7981a309d1 Trying to rework the indentation stack. 2017-06-12 23:52:27 +02:00
Dave Halter 5f14382103 Start analyzing backslashes. 2017-06-12 09:54:56 +02:00
Dave Halter 7cbcc6d0f3 More indentation issue fixes. 2017-06-11 23:01:15 +02:00
Dave Halter 146ef2436f Implement the first few issues of the E12x issues. 2017-06-11 20:37:59 +02:00
Dave Halter c07cd77417 Implement E101. No mixing of tabs and spaces in indentation. 2017-06-08 00:10:15 +02:00
Dave Halter 34aabd6b47 Make the prefix parsing a bit simpler by combining tabs and spaces. 2017-06-07 17:23:07 +02:00
Dave Halter 9365ffc932 For now mute a test where Jedi is not far enough with detecting issues in the parser tree. 2017-06-07 17:13:33 +02:00
Dave Halter 03c34d6105 Get the indentation errors of files mostly right even in comments. 2017-06-07 17:06:58 +02:00
Dave Halter b73aa1fd61 Add normalizer issues 711-714. 2017-06-06 14:14:01 +02:00
Dave Halter 7d99b8e823 Make the normalizer tests' indentation easier to understand. 2017-06-06 08:56:55 +02:00
Dave Halter ebf5850cb9 Add normalizer support for E701-E704. 2017-06-06 08:55:05 +02:00
Dave Halter 6bf52e8fe0 Fix a Python 2 issue in the normalizer. 2017-06-05 23:30:58 +02:00
Dave Halter c3d101f582 Add some normalizer tests about imports. 2017-06-05 23:29:25 +02:00
Dave Halter 3e95793756 Fix the lambda issues. 2017-06-05 00:22:26 +02:00
Dave Halter d1d02ba3f5 Create the first tests for the pydocstyle finder. 2017-06-04 23:59:44 +02:00
Dave Halter 660bbe1971 Trying to add a testsuite in pytest for the tests of pydocstyle. 2017-06-04 21:10:57 +02:00
Dave Halter f13643b6cd Try to implement some of the pydocstyle functionality in the normalizer function. 2017-06-04 18:13:29 +02:00
Dave Halter e82976fb37 Fix a 27 issue. 2017-06-02 00:16:53 +02:00
Dave Halter be54401388 Fix some stuff that caused issues in Jedi. 2017-06-02 00:15:37 +02:00
Dave Halter b1b165c21e Actually pass the tests again with removed remove_last_newline. 2017-06-01 18:29:52 +02:00
Dave Halter 814b16cc6c Remove the remove_newline hack and build that stuff into error recovery instead.
Tests are passing except for diff parser tests.
2017-05-31 21:24:24 +02:00
Dave Halter b367058af6 Temporary work on carriage returns. 2017-05-31 08:59:49 +02:00
Dave Halter 8356bcab10 Fix small issues in prefix positioning. 2017-05-30 09:35:13 +02:00
Dave Halter 3e4b2f41cd Fix the token types. 2017-05-30 02:05:45 +02:00
Dave Halter 6640308d15 Add a prefix splitting. 2017-05-30 02:00:08 +02:00
Dave Halter a276c0b42d Try to add rules for normalizers. 2017-05-28 17:14:20 +02:00
Dave Halter d774bdd8f7 For now the normalizer just does something stupid. Removing the whitespace. 2017-05-27 20:45:30 -04:00
Dave Halter 673ffb9c62 Start adding normalizers instead of the get_code(normalize=True) function. 2017-05-27 13:02:56 -04:00
Dave Halter 7c1f3b3a65 Use escapes for some regex expressions. 2017-05-26 14:19:06 -04:00
Dave Halter adc3ec268a Fix a 27 test. 2017-05-26 14:14:08 -04:00
Dave Halter 7b8455174a Remove more unused code. 2017-05-26 14:06:40 -04:00
Dave Halter 53674772ff Fix a small todo. 2017-05-26 13:59:33 -04:00
Dave Halter 406064c457 Remove a place of saving a module that was not necessary. 2017-05-26 13:43:34 -04:00
Dave Halter bc68266a68 Remove a todo that was a duplicate. 2017-05-26 13:01:50 -04:00
Dave Halter dafffdc9b4 The parser cache in RAM has now grammar versioning. 2017-05-26 12:48:59 -04:00
Dave Halter f997b91a12 Remove a function that was never used. 2017-05-26 12:23:30 -04:00
Dave Halter 8ae5fc60d6 Moved the grammar object out of the cache module. 2017-05-26 12:17:45 -04:00
Dave Halter 976c5151af Rename source_tokens to tokenize and generate_tokens to tokenize_lines. 2017-05-26 12:01:35 -04:00
Dave Halter d8e991c39f A small change to remove flake8 warnings. 2017-05-26 11:51:00 -04:00