Commit Graph

  • d6f8e3de4f Add all the E27 issues. Dave Halter 2017-06-27 10:05:04 +02:00
  • a341af1f81 Finally fix most of the issues in E22. Huge amounts of work. Dave Halter 2017-06-27 09:55:18 +02:00
  • 6bea7094c8 Add E211. Dave Halter 2017-06-23 09:49:18 +02:00
  • 2470f54baf Fix the E20 errors. Dave Halter 2017-06-23 09:37:02 +02:00
  • 97aebe4aa0 Add some more tests. Dave Halter 2017-06-21 17:25:57 +02:00
  • e66b62d1e1 Better backslash nodes that allow other alignments in case of expr_stmt. Dave Halter 2017-06-21 17:25:00 +02:00
  • cd1b676c7e A few tests that should mostly pass. Dave Halter 2017-06-21 09:47:43 +02:00
  • 9081cf55fb Decided how to indent stuff after keyword arguments and in dict literals. Dave Halter 2017-06-21 09:47:24 +02:00
  • c11dd6b5aa Start fixing more problems with hanging indents. Dave Halter 2017-06-16 09:43:09 +02:00
  • 98fbbaf945 Finally prepared the E12_second file to use it. Dave Halter 2017-06-15 19:32:11 +02:00
  • 7a758dabd8 Don't add issues if we're in an error node. Dave Halter 2017-06-15 19:31:23 +02:00
  • 0f2e6f9e22 Rework the test suite to make clearer where errors originate. Dave Halter 2017-06-15 19:30:48 +02:00
  • d5e9ecea12 Figuring out how indentation of chained brackets works. Dave Halter 2017-06-15 01:26:38 +02:00
  • c9fe2596c1 Add a first file for the tests of E12x. Dave Halter 2017-06-14 23:11:31 +02:00
  • cdc3e0a731 Modify the license file a bit for the normalizer issue files to make my contributions clear. Dave Halter 2017-06-14 18:31:18 +02:00
  • da779e09b1 Further progress in indentation issues. Dave Halter 2017-06-14 18:12:15 +02:00
  • 005e5f403a Fix some stuff about backslashes. Dave Halter 2017-06-13 01:23:08 +02:00
  • 7981a309d1 Trying to rework the indentation stack. Dave Halter 2017-06-12 23:52:27 +02:00
  • 5f14382103 Start analyzing backslashes. Dave Halter 2017-06-12 09:54:56 +02:00
  • 7cbcc6d0f3 More indentation issue fixes. Dave Halter 2017-06-11 23:01:15 +02:00
  • 146ef2436f Implement the first few issues of the E12x issues. Dave Halter 2017-06-11 20:37:59 +02:00
  • c07cd77417 Implement E101. No mixing of tabs and spaces in indentation. Dave Halter 2017-06-08 00:10:15 +02:00
  • 34aabd6b47 Make the prefix parsing a bit simpler by combining tabs and spaces. Dave Halter 2017-06-07 17:23:07 +02:00
  • 9365ffc932 For now mute a test where Jedi is not far enough with detecting issues in the parser tree. Dave Halter 2017-06-07 17:13:03 +02:00
  • 03c34d6105 Get the indentation errors of files mostly right even in comments. Dave Halter 2017-06-07 17:06:48 +02:00
  • b73aa1fd61 Add normalizer issues 711-714. Dave Halter 2017-06-06 14:03:23 +02:00
  • 7d99b8e823 Make the normalizer tests' indentation easier to understand. Dave Halter 2017-06-06 08:56:55 +02:00
  • ebf5850cb9 Add normalizer support for E701-E704. Dave Halter 2017-06-06 08:55:05 +02:00
  • 72608704d8 Change Windows default cache directory to local (#1) Siddhartha Gandhi 2017-06-06 01:58:29 -04:00
  • 6bf52e8fe0 Fix a Python 2 issue in the normalizer. Dave Halter 2017-06-05 23:30:58 +02:00
  • c3d101f582 Add some normalizer tests about imports. Dave Halter 2017-06-05 23:29:25 +02:00
  • 3e95793756 Fix the lambda issues. Dave Halter 2017-06-05 00:22:26 +02:00
  • d1d02ba3f5 Create the first tests for the pydocstyle finder. Dave Halter 2017-06-04 23:59:44 +02:00
  • 660bbe1971 Trying to add a testsuite in pytest for the tests of pydocstyle. Dave Halter 2017-06-04 21:10:57 +02:00
  • f13643b6cd Try to implement some of the pydocstyle functionality in the normalizer function. Dave Halter 2017-06-04 18:13:29 +02:00
  • e82976fb37 Fix a 27 issue. Dave Halter 2017-06-02 00:16:53 +02:00
  • be54401388 Fix some stuff that caused issues in Jedi. Dave Halter 2017-06-02 00:15:37 +02:00
  • b1b165c21e Actually pass the tests again with removed remove_last_newline. Dave Halter 2017-06-01 18:26:40 +02:00
  • 814b16cc6c Remove the remove_newline hack and build that stuff into error recovery instead. Dave Halter 2017-05-31 21:24:24 +02:00
  • b367058af6 Temporary work on carriage returns. Dave Halter 2017-05-31 08:59:49 +02:00
  • 8356bcab10 Fix small issues in prefix positioning. Dave Halter 2017-05-30 09:35:13 +02:00
  • 3e4b2f41cd Fix the token types. Dave Halter 2017-05-30 02:05:45 +02:00
  • 6640308d15 Add a prefix splitting. Dave Halter 2017-05-30 02:00:08 +02:00
  • a276c0b42d Try to add rules for normalizers. Dave Halter 2017-05-28 17:14:20 +02:00
  • d774bdd8f7 For now the normalizer just does something stupid. Removing the whitespace. Dave Halter 2017-05-27 20:45:30 -04:00
  • 673ffb9c62 Start adding normalizers instead of the get_code(normalize=True) function. Dave Halter 2017-05-27 13:02:56 -04:00
  • 7c1f3b3a65 Use escapes for some regex expressions. Dave Halter 2017-05-26 14:19:06 -04:00
  • adc3ec268a Fix a 27 test. Dave Halter 2017-05-26 14:14:08 -04:00
  • 7b8455174a Remove more unused code. Dave Halter 2017-05-26 14:06:40 -04:00
  • 53674772ff Fix a small todo. Dave Halter 2017-05-26 13:59:33 -04:00
  • 406064c457 Remove a place of saving a module that was not necessary. Dave Halter 2017-05-26 13:43:34 -04:00
  • bc68266a68 Remove a todo that was a duplicate. Dave Halter 2017-05-26 13:01:50 -04:00
  • dafffdc9b4 The parser cache in RAM has now grammar versioning. Dave Halter 2017-05-26 12:48:59 -04:00
  • f997b91a12 Remove a function that was never used. Dave Halter 2017-05-26 12:23:30 -04:00
  • 8ae5fc60d6 Moved the grammar object out of the cache module. Dave Halter 2017-05-26 12:17:45 -04:00
  • 976c5151af Rename source_tokens to tokenize and generate_tokens to tokenize_lines. Dave Halter 2017-05-26 12:01:35 -04:00
  • d8e991c39f A small change to remove flake8 warnings. Dave Halter 2017-05-26 11:51:00 -04:00
  • 33c228aa42 Remove exact_op_types as a parameter, because it's not even used. Dave Halter 2017-05-26 11:49:48 -04:00
  • 0d93a2a2df Simplify pgen a bit. Dave Halter 2017-05-26 11:46:22 -04:00
  • 8948c9053b use_exact_op_types -> exact_op_types. Dave Halter 2017-05-26 11:39:29 -04:00
  • b4259b2b4f Change the default of use_exact_op_types in the tokenizer. Dave Halter 2017-05-26 11:32:00 -04:00
  • 5ba73bfccc Moved the grammar files for the new logic. Dave Halter 2017-05-25 16:46:39 -04:00
  • 6283577bc3 Actually implement the load_grammar properly. Dave Halter 2017-05-25 16:45:29 -04:00
  • b037321d1e Change the docstring for the cache parameter. Dave Halter 2017-05-25 14:40:09 -04:00
  • 68038a82ee Reorder some arguments. Dave Halter 2017-05-25 13:44:19 -04:00
  • b7df52edb5 Use the diff parser as well. Dave Halter 2017-05-25 13:41:45 -04:00
  • e7ea01fb35 Actually start using the stuff we defined in grammar. Dave Halter 2017-05-25 13:38:49 -04:00
  • 333046c253 load_python_grammar -> load_grammar. Dave Halter 2017-05-25 13:28:24 -04:00
  • fab9edff87 Whitespace. Dave Halter 2017-05-24 14:26:01 -04:00
  • e1ef9c086f Now also add an index.rst. Dave Halter 2017-05-24 14:09:50 -04:00
  • d5c27b59be Move the parser tree to a more fitting file name. Dave Halter 2017-05-24 13:51:42 -04:00
  • a8ef9990b6 First iteration of parser tree docs. Dave Halter 2017-05-24 13:50:26 -04:00
  • 7e94b2c4ed A first iteration of the usage documentation. Dave Halter 2017-05-24 13:44:24 -04:00
  • 5e62a836db Add a development documentation. Dave Halter 2017-05-24 13:21:02 -04:00
  • 9b6f7c78a2 Add an installation documentation. Dave Halter 2017-05-24 13:13:23 -04:00
  • 8feaad23f1 Add a version_info function in parso.utils. Dave Halter 2017-05-24 12:52:15 -04:00
  • 2fd4567d6f Add a test from jedi. Dave Halter 2017-05-24 00:42:17 -04:00
  • a07801327c Bump version. Dave Halter 2017-05-24 00:17:46 -04:00
  • 726ebade70 Autodiscover packages with find_packages in setup.py. v0.0.2 Dave Halter 2017-05-24 00:16:05 -04:00
  • f2c257d7dd Move the utility function parse to the __init__ script. Dave Halter 2017-05-24 00:08:09 -04:00
  • 25941bbfb8 A parso docstring. Dave Halter 2017-05-23 14:36:45 -04:00
  • 29fa0d27fc Whitespace. Dave Halter 2017-05-23 14:24:38 -04:00
  • 775679d481 Move the grammar creation stuff into grammar.py. Dave Halter 2017-05-23 14:24:26 -04:00
  • 51a6328096 Make some default changes to create_grammar. Dave Halter 2017-05-23 14:21:39 -04:00
  • 89501e6fa5 Fix an error_recovery/file_input check. Dave Halter 2017-05-23 14:13:52 -04:00
  • 649d2bebbc Better documentation for the parso grammar. Dave Halter 2017-05-23 14:10:32 -04:00
  • 5fab429163 Fix a diff parser issue with a test as well. Dave Halter 2017-05-22 15:37:26 -04:00
  • 7d3438c94d Move the parse function to the grammar. Dave Halter 2017-05-22 14:06:40 -04:00
  • 3a0cd6d377 Make sha256 private to avoid confusion for the end user. Dave Halter 2017-05-21 17:35:32 -04:00
  • 4ca92861c6 Use pgen_grammar more consequent. Dave Halter 2017-05-21 17:35:06 -04:00
  • c734df407b Use the name pgen_grammar instead of grammar to avoid confusion of the two. Dave Halter 2017-05-21 17:22:21 -04:00
  • 96252145a7 Bump version number. Dave Halter 2017-05-21 17:05:34 -04:00
  • 23d1470618 Add a more API focused grammar. Dave Halter 2017-05-21 17:02:15 -04:00
  • 973f7c5f61 Refactor the parse function to be more readable. Dave Halter 2017-05-21 13:50:02 -04:00
  • a5b9177d4f The deploy script should create versions prefixed with v. Dave Halter 2017-05-20 18:01:38 -04:00
  • 082cb9919f Remove sith completely from the travis config. v0.0.1 Dave Halter 2017-05-20 14:22:49 -04:00
  • d6a781744d Fix a small mistake. Dave Halter 2017-05-20 14:10:21 -04:00
  • 0bd16939f1 Add utils tests for splitlines and source_to_unicode. Dave Halter 2017-05-20 09:54:37 -04:00
  • 3357613ac2 Make some methods private when creating grammars. Dave Halter 2017-05-19 16:39:14 -04:00
  • 88f8e172d5 Fixed a bug where providing a cache_path did not really affect anything. Dave Halter 2017-05-19 16:28:07 -04:00