Commit Graph

  • 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 #1495 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
  • b4628abc60 Some sother small test improvements Dave Halter 2020-02-13 09:34:33 +01:00
  • aef675c79b Rewrite old refactoring tests a bit to reuse them Dave Halter 2020-02-13 09:27:57 +01:00
  • 41602124c7 Prepare remaining refactoring methods that should be implemented at some point Dave Halter 2020-02-13 09:27:36 +01:00
  • 5c246649e2 Test renames better and change some small things about the refactoring API Dave Halter 2020-02-13 00:19:34 +01:00
  • 6c9f187884 Refactor the rename tests a bit Dave Halter 2020-02-13 00:19:00 +01:00
  • 871575b06c Make sure that get_changed_files returns a dict Dave Halter 2020-02-12 09:59:39 +01:00
  • fd4ba3f47e Make sure to that renames works for keyword params Dave Halter 2020-02-12 01:19:34 +01:00
  • 204b072388 Add tests for undefined variables Dave Halter 2020-02-12 01:08:47 +01:00
  • e7ab318107 Make sure rename diffs have the right paths Dave Halter 2020-02-12 01:00:13 +01:00
  • 52d72157c0 Rename a module to make refactoring tests a bit faster Dave Halter 2020-02-12 00:35:49 +01:00
  • ac47866c4c TypedDict: fix non-inheritance tests, add inheritance Sam Roeca 2020-02-11 18:32:15 -05:00
  • c47021150e Add a rename test for combination of variables and modules Dave Halter 2020-02-11 23:43:09 +01:00
  • a39b2e95c1 Add another refactoring test Dave Halter 2020-02-11 19:14:10 +01:00
  • d42d3f45f0 Add venv to .gitignore Jma353 2020-02-10 17:59:21 -08:00
  • b4494e588f A prefixed path should not also be suffixed Dave Halter 2020-02-11 18:34:41 +01:00
  • 0697a39145 Make refactoring tests a bit clearer Dave Halter 2020-02-11 10:08:36 +01:00
  • e43b0cec4a Get renames working for module imports Dave Halter 2020-02-11 01:34:57 +01:00
  • ab4f282b03 Move rename function to refactoring Dave Halter 2020-02-11 00:18:49 +01:00
  • 4bc9075d0b Add another rename test for imports Dave Halter 2020-02-10 21:17:22 +01:00
  • faddf412f9 Make some refactoring test variables private Dave Halter 2020-02-10 20:06:27 +01:00
  • e22a44d79e Remove a lot of nonsense from refactoring tests Dave Halter 2020-02-10 20:04:48 +01:00
  • 4cc03d2239 Add another rename test Dave Halter 2020-02-10 19:51:35 +01:00
  • 1e929b0aa0 Remove the old refactoring module Dave Halter 2020-02-10 17:48:24 +01:00
  • 13b393a5e3 Get the first rename test passing Dave Halter 2020-02-10 17:42:23 +01:00
  • 6166e7961e Make sure that tests for refactoring are redirected Dave Halter 2020-02-09 14:05:16 +01:00
  • 370e539a7e Remove additional prefix which seems incorrect Peter Law 2020-02-08 21:37:23 +00:00
  • fd1f9f22e9 Update use of _source which no longer exists to _code Peter Law 2020-02-08 21:37:01 +00:00
  • bcb7cc864c Make sure to move up VSCode, because it's used a lot Dave Halter 2020-02-08 20:09:46 +01:00
  • de2f753546 Revert "Make sure to mention that VSCode is using Jedi" Dave Halter 2020-02-08 20:06:08 +01:00
  • 2cf06bcf48 Make sure to mention that VSCode is using Jedi Dave Halter 2020-02-08 20:04:47 +01:00
  • cf954bf006 Expand on TypedDict tests. #1494 Sam Roeca 2020-02-07 14:40:39 -05:00
  • 9d2083fa08 Remove argument to filter.values() Sam Roeca 2020-02-07 13:38:52 -05:00
  • 6a9745b42b Get basic completions working with TypedDict Sam Roeca 2020-01-28 14:07:05 -05:00