Commit Graph

  • 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
  • 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. 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
  • 87161df2f0 Make sure that typeddict py__getitem__ works Dave Halter 2020-02-07 16:45:03 +01:00
  • 7ef07b576f Merge branch 'master' into typeddict Dave Halter 2020-02-07 04:03:27 +01:00
  • 6e63799a7d Fix a test that picked up the wrong paths Dave Halter 2020-02-06 22:51:40 +01:00
  • 841fe75326 Fix an issue with environment selection Dave Halter 2020-02-06 22:41:11 +01:00
  • f6465c5202 Get rid of one more os.getcwd() call Dave Halter 2020-02-06 01:51:10 +01:00
  • 14ac0512a9 Get rid of cwd modifications in tests Dave Halter 2020-02-06 01:47:34 +01:00
  • f2722952e7 Fix load_unsafe_extensions issue Dave Halter 2020-02-05 10:01:21 +01:00
  • b7919bd3e6 Merge branch 'master' into project Dave Halter 2020-02-04 23:56:47 +01:00
  • 7a55484b79 Fix a test issue Dave Halter 2020-02-04 23:56:01 +01:00
  • 670d6e8639 Move is_side_effect to Definition and correct bugs Dave Halter 2020-02-04 20:12:24 +01:00
  • 6313934d94 Add a docstring for is_side_effect Dave Halter 2020-02-04 19:39:13 +01:00
  • 40fced2450 Actually use follow_builtin_imports and improve the goto docstring, fixes #1492 Dave Halter 2020-02-04 19:34:42 +01:00
  • 692bf5cfb7 Properly identify side effects, fixes #1411 Dave Halter 2020-02-04 10:12:13 +01:00
  • 66e28eb52e Move test_api/test_defined_names.py -> test_api/test_names.py Dave Halter 2020-02-04 10:03:55 +01:00
  • 3388a9659b Catch an error with illegal class instances, fixes #1491 Dave Halter 2020-02-03 22:27:22 +01:00
  • eb88c483fb Catch an error with illegal class instances, fixes #1491 Dave Halter 2020-02-03 22:27:22 +01:00
  • 2c62166ff6 Get parser errors working, fixes #1488 Dave Halter 2020-02-03 22:06:12 +01:00
  • 3101e43aa6 Merge branch 'master' into project Dave Halter 2020-02-03 09:26:43 +01:00
  • a49c757b8a Make Ellipsis without list in Callable work, fixes #1475 Dave Halter 2020-02-03 09:25:41 +01:00
  • 3ad3dc08b8 Run get_type_hint tests only for 3.6+ Dave Halter 2020-02-03 01:03:12 +01:00
  • eee919174d Stubs should not become stubs again in the conversion function, fixes #1475 Dave Halter 2020-02-03 00:58:54 +01:00
  • e802f5aabd Make sure to print errors in __main__ completions Dave Halter 2020-02-02 23:28:55 +01:00
  • e3c4b5b77e Make sure param hints are working for functions Dave Halter 2020-02-02 18:36:56 +01:00
  • 4c7179bc87 Generate type hints, fixes #987 Dave Halter 2020-02-02 16:55:10 +01:00
  • f4b1fc479d Bump version to 0.16.1 Dave Halter 2020-01-31 13:38:27 +01:00
  • e1425de8a4 Make sure to be able to deal with all kinds of loaders, fixes #1487 Dave Halter 2020-01-31 13:26:56 +01:00
  • 8ff2ea4b38 Make sure to not load unsafe modules anymore if they are not on the sys path, fixes #760 Dave Halter 2020-01-31 13:09:28 +01:00
  • e7a77e438d Remove python_version again, it might not be needed Dave Halter 2020-01-31 02:15:24 +01:00
  • a05628443e Make sure serialization works for projects Dave Halter 2020-01-31 02:14:34 +01:00
  • d09882f970 Remove django from the project API Dave Halter 2020-01-31 01:50:52 +01:00