1
0
forked from VimPlug/jedi

Commit Graph

  • 609737322d TypedDict checking should be at a later point Dave Halter 2020-03-01 02:34:38 +01:00
  • fa63c92cf7 Simplify tests a bit Dave Halter 2020-03-01 01:56:49 +01:00
  • e5fabb4c5f Fix some version issue stuff Dave Halter 2020-03-01 01:42:22 +01:00
  • bb91b96286 Merge branch 'typeddict' of https://github.com/pappasam/jedi Dave Halter 2020-03-01 01:31:17 +01:00
  • fd23946de3 Avoid universal newlines even more Dave Halter 2020-03-01 01:12:47 +01:00
  • a2b8c44e8f Get rid of Python's universal newlines for refactoring Dave Halter 2020-02-29 23:31:57 +01:00
  • 0a1de619b4 Reverse order of travis tests Dave Halter 2020-02-28 12:48:08 +01:00
  • 31d5c92dae Reverse order of tests in appveyor Dave Halter 2020-02-28 12:47:18 +01:00
  • d1873f8e1e Windows uses backslashes for paths Dave Halter 2020-02-28 12:42:39 +01:00
  • 58ba47841c Use inline_mod instead of some_mod for inline refactor tests Dave Halter 2020-02-28 01:53:27 +01:00
  • 0f2d6ac27a Undo some .travis.yml changes that were removed because of Python 3.4 drop Dave Halter 2020-02-28 00:22:29 +01:00
  • 76ce422590 Make refactoring diff path a relative path to the project path Dave Halter 2020-02-28 00:17:14 +01:00
  • 1f773d8e65 Refactoring is not allowed for environments and the current version lower than 3.6 Dave Halter 2020-02-27 23:24:23 +01:00
  • 4451d2fec7 Refactoring diffs now show relative paths Dave Halter 2020-02-27 23:23:24 +01:00
  • 0ef8053919 Don't use a random grammar for extract Dave Halter 2020-02-27 22:50:30 +01:00
  • 140a45081f Python 3.5 is not supported for refactorings Dave Halter 2020-02-27 18:59:16 +01:00
  • ebdaf0177d Don't continue searching for values if an annotation is found Dave Halter 2020-02-27 18:47:13 +01:00
  • f2f11bc574 Remove some code for 3.3 compatibility Dave Halter 2020-02-27 18:31:50 +01:00
  • 5f2a402b19 Removed some more 3.4 usages Dave Halter 2020-02-27 18:30:46 +01:00
  • 5f226bc82e Make sure to not execute refactoring tests for Python 2 Dave Halter 2020-02-27 02:17:05 +01:00
  • a892887b04 Remove Python 3.4 support Dave Halter 2020-02-27 02:04:03 +01:00
  • d1ac00f64f Fix run.py issue Dave Halter 2020-02-27 01:44:01 +01:00
  • 03e1770a24 Fix rename refactoring tests Dave Halter 2020-02-27 01:23:07 +01:00
  • 42adadd0cb Add an extract test for methods without params Dave Halter 2020-02-27 01:19:01 +01:00
  • 3708ab3514 Make extract yield error message better Dave Halter 2020-02-27 01:12:34 +01:00
  • c9334d140b Make it impossible to extract if return is not at the end Dave Halter 2020-02-27 01:07:16 +01:00
  • 35e992c37c Make sure that return at the end works properly for extract Dave Halter 2020-02-27 00:54:40 +01:00
  • a92c28840b Fix: Extract can now deal with return statements at the end Dave Halter 2020-02-26 09:31:33 +01:00
  • c96994dd8d Add a method extract test Dave Halter 2020-02-26 01:11:04 +01:00
  • bb6f0d5e91 Fix extract: better input filtering Dave Halter 2020-02-26 00:59:04 +01:00
  • bf9a3a4ca8 Rewrite an extract test to make them more diverse Dave Halter 2020-02-26 00:24:27 +01:00
  • eef47e951e One more function test Dave Halter 2020-02-26 00:21:46 +01:00
  • 17892556f8 Fix another comment extraction issue Dave Halter 2020-02-26 00:17:44 +01:00
  • b65c1c26aa Fix a function extract indentation issue Dave Halter 2020-02-25 23:52:23 +01:00
  • bc3e1ada03 One more comment test for extract with range Dave Halter 2020-02-25 23:30:44 +01:00
  • 1f82efa86d Fix a newline issue for refactoring functions Dave Halter 2020-02-25 23:27:21 +01:00
  • 94c00229f2 Make it possible to include comments for extract function Dave Halter 2020-02-25 23:25:50 +01:00
  • 5614ef2fed Move all the extract stuff into a different file Dave Halter 2020-02-25 10:33:22 +01:00
  • 8ff5ca81d2 Make a package out of refactoring Dave Halter 2020-02-25 10:28:27 +01:00
  • ff60c0af87 Docstrings Dave Halter 2020-02-25 10:27:36 +01:00
  • 89398e5c87 Deal a lot better with prefixes in range extractions Dave Halter 2020-02-25 10:23:38 +01:00
  • f8d9f498d0 Get a first extract test mostly working Dave Halter 2020-02-24 10:12:38 +01:00
  • 30738a092b Update sith's module docstring to match the available operations Peter Law 2020-02-23 12:29:04 +00:00
  • f527138e6c Extract: Fix param order for methods Dave Halter 2020-02-24 00:19:34 +01:00
  • 24a4c3ceba Test closure extraction Dave Halter 2020-02-23 23:56:59 +01:00
  • 48e25c1b9b Extract: Make sure params are not duplicated Dave Halter 2020-02-23 23:22:00 +01:00
  • f1a9e681ad Ensure comprehensions and generator expressions work Peter Law 2020-02-23 15:25:28 +00:00
  • f4cbf61604 Ensure variadic tuples (Tuple[T, ...]) behave like sequences Peter Law 2020-02-23 00:53:41 +00:00
  • 5e990d9206 Support passing through values for non-annotated tuples Peter Law 2020-02-23 00:27:30 +00:00
  • 80db4dcf56 Add test to ensure unions work Peter Law 2020-02-22 23:47:20 +00:00
  • e557129121 Remove check which doesn't seem to be needed Peter Law 2020-02-22 23:13:31 +00:00
  • c15e0ef9b8 Ensure specialised types inheriting from generics work Peter Law 2020-02-22 23:10:27 +00:00
  • e455709a31 Add test case for nested generic callables Peter Law 2020-02-22 22:30:22 +00:00
  • c03ae0315e Make nested Type[T] annotations work Peter Law 2020-02-22 22:10:59 +00:00
  • bc53dabce3 Make tuple generic parameters work Peter Law 2020-02-22 20:36:57 +00:00
  • 969a8f1fd9 First pass at extending infer_type_vars Peter Law 2020-02-22 19:16:35 +00:00
  • 0a7820f6de Add many test cases Peter Law 2020-02-16 23:09:28 +00:00
  • da935baa99 Some more extract improvements Dave Halter 2020-02-23 12:06:37 +01:00
  • cc8483a07a Fix extract issues when self is involved Dave Halter 2020-02-23 11:50:05 +01:00
  • 48c4262f66 Start trying to find param names Dave Halter 2020-02-23 01:55:36 +01:00
  • d069a4e482 Add a test for extraction in a class Dave Halter 2020-02-23 01:41:51 +01:00
  • 2061919b64 Get staticmethod working Dave Halter 2020-02-23 01:36:45 +01:00
  • a7110a4e08 Get a first classmethod extraction working Dave Halter 2020-02-23 00:40:31 +01:00
  • b7be5a4fe2 Extract: Correct newlines for classes and make it possible to be on a return/yield statement Dave Halter 2020-02-23 00:24:34 +01:00
  • 876109267a Remove is_function_execution, it's not used Dave Halter 2020-02-23 00:16:44 +01:00
  • 1c0f9e1f30 Extract functions properly out of functions Dave Halter 2020-02-22 21:24:06 +01:00
  • 6efafb348e Extract the annotation name upfront Peter Law 2020-02-22 19:40:10 +00:00
  • 36b4b797c1 Add trailing comma Peter Law 2020-02-22 18:22:42 +00:00
  • ce1093406a Get some first extract_function stuff working Dave Halter 2020-02-21 23:56:59 +01:00
  • dcffe8e60b Some refactorings and final tests for extract variable Dave Halter 2020-02-21 03:15:40 +01:00
  • 0516637e8d Fix an extract case about "not" Dave Halter 2020-02-21 03:03:48 +01:00
  • 3bc66c2f00 Fix some error cases for extract Dave Halter 2020-02-21 02:22:31 +01:00
  • 742c4370b5 Fix some last extract issues Dave Halter 2020-02-21 01:57:12 +01:00
  • 292ad9d9ac Enable extracting of parts of nodes Dave Halter 2020-02-21 01:43:36 +01:00
  • 3457bd77eb Make sure that extract variable works for some ranges Dave Halter 2020-02-20 23:34:09 +01:00
  • 1874e9be81 Remove the word 'class' from annotation_string Lior Goldberg 2020-02-20 00:44:35 +02:00
  • 3f86d803d2 Fix another special extract case Dave Halter 2020-02-20 01:29:04 +01:00
  • 26bf2ceb15 Fix refactoring of leaves just before leaves Dave Halter 2020-02-20 00:43:02 +01:00
  • bfa15c61f1 Keyword extraction is now working better Dave Halter 2020-02-19 09:25:59 +01:00
  • 61619c4db1 Test keyword extraction Dave Halter 2020-02-19 09:20:12 +01:00
  • 50be49544d Move indent_block to common Dave Halter 2020-02-19 09:15:39 +01:00
  • b1d3c7ef52 Move indent_block to a separate utils Dave Halter 2020-02-18 18:50:40 +01:00
  • 7dff25f7c9 Test extracing of base classes Dave Halter 2020-02-17 10:06:40 +01:00
  • ab4fe548f2 Handle params better for extract variable Dave Halter 2020-02-17 09:55:11 +01:00
  • c4cf0d78e1 Add a couple of docstrings Peter Law 2020-02-15 10:51:24 +00:00
  • d1f7400829 First implementation of extract variable Dave Halter 2020-02-15 12:17:29 +01:00
  • ee8cdb667d Make it possible to test refactoring outputs a bit different Dave Halter 2020-02-15 00:59:26 +01:00
  • 24114ba631 Remove reorder imports. For now this is not a priority Dave Halter 2020-02-14 23:56:11 +01:00
  • 9d171609da Fix some inline tests about different modules and atom_expr/trailer combinations Dave Halter 2020-02-14 18:02:37 +01:00
  • 518d2449a7 More inline tests Dave Halter 2020-02-14 17:26:58 +01:00
  • a906a76ccd Don't support refactoring for Python 2 Dave Halter 2020-02-14 17:19:21 +01:00
  • af20905f7d Make sure the brackets are set properly Dave Halter 2020-02-14 17:08:42 +01:00
  • d536a20019 Fix some whitespace refactoring when inlining Dave Halter 2020-02-14 16:57:25 +01:00
  • bcefb04d54 add some more test for inline errors Dave Halter 2020-02-14 15:49:18 +01:00
  • dac2655915 Make sure to test errors for inlining Dave Halter 2020-02-14 15:30:49 +01:00
  • 14180ad185 Make sure to have a rename test if no name is under the cursor Dave Halter 2020-02-14 14:24:05 +01:00
  • dbf88f2750 Make it possible to be able to test errors for refactorings Dave Halter 2020-02-14 14:15:57 +01:00
  • 0a3ff6bd70 Implement inline refactorings Dave Halter 2020-02-14 13:53:41 +01:00
  • d6f6c29a63 TypedDict test: fix Bar inheritance checks Sam Roeca 2020-02-13 10:43:41 -05:00
  • c7d1b8de9e Tell sith that 'completions' became 'complete' Peter Law 2020-02-12 22:45:00 +00:00