Commit Graph
41 Commits
Author SHA1 Message Date
Andrey Vlasovskikh 9d2bd32bba Extract async function (PY-16094) 2015-09-12 15:54:47 +03:00
Mikhail Golubev 150a577535 Fix test data and code style settings in tests after recent changes in formatter core 2015-07-15 19:28:25 +03:00
Mikhail Golubev 6565130bff PY-6620 Prohibit refactoring at class level, remove stale test cases and their data 2015-04-02 20:08:33 +03:00
Mikhail Golubev 45cc683033 PY-10829 Extracted function is inserted *after* the function where it is used
I updated test data accordingly and removed now obsolete tests about
skipping preceding comments.
2015-04-02 20:08:32 +03:00
Mikhail Golubev 77b11662fa PY-2903 Take into account preceding comments when picking place for extracted method
Interestingly, test existed already but was disabled a long ago.
2015-04-02 20:08:32 +03:00
Mikhail Golubev 501ca0025a PY-7753 Do not add global statement for written variables that are not used outside selection
Also I added several missing @NotNull annotations.
2015-04-02 20:08:31 +03:00
Dmitry Trofimov 9993883c5f Fix a typo. 2014-02-03 19:59:02 +04:00
Dmitry Trofimov 3e21a1f282 Fix test data for PEP8. 2014-02-03 19:02:41 +04:00
Dmitry Trofimov 2142a55750 Fixed test data to satisfy PEP8. 2014-01-23 12:09:02 +01:00
Ekaterina Tuzova 938f5c7ba6 improved duplicates search in python extract method
according to PY-9639 Extract method: Replace Duplicates: search duplicates by code tree, not by exact text match
2013-09-23 14:10:58 +04:00
Ekaterina Tuzova 34698a7c89 added intelligence for duplicate processor in python extract method 2013-07-15 19:39:31 +04:00
Ekaterina Tuzova 129f17673f do replace duplicates in different functions in class during extract method 2013-04-25 16:47:16 +04:00
Ekaterina Tuzova d0de628451 added Replace duplicates in Extract Method 2013-04-18 15:47:29 +04:00
Dmitry Jemerov 0d5b931b80 code style settings to force new line after colon in single-clause and multi-clause compound statements 2013-01-29 20:31:12 +01:00
Dmitry Jemerov 279a136c14 change option "between top-level classes and functions" to "around ...", ensure that we put two lines between import and class (PY-7743) 2012-12-13 20:21:08 +01:00
Andrey Vlasovskikh 6387477888 Fixed extracting a single 'yield from ...' expression (PY-7399) 2012-08-31 18:22:34 +04:00
Andrey Vlasovskikh 0e7bad6ede Added ability to extract sub-generator in Python 3.3 for extract method refactoring (PY-7382) 2012-08-30 21:13:28 +04:00
Andrey Vlasovskikh fb233cb90c Disabled extract method refactoring for code fragments that contain 'yield' (PY-7381) 2012-08-30 21:09:49 +04:00
Andrey Vlasovskikh bd42933bd2 Fixed extract method for fragments with nonlocal variables (PY-6625) 2012-05-23 20:22:38 +04:00
Andrey Vlasovskikh f4f66b0f32 Fixed unnecessary cls argument when extracting @classmethod (PY-6624) 2012-05-23 19:36:51 +04:00
Andrey Vlasovskikh f3dd3841c9 Fixed extracting fragments with inner classes without constructors (PY-6622) 2012-05-23 18:25:55 +04:00
Andrey Vlasovskikh aa5d3f07ba Fixed detection of loop parts with continue and break in extract method refactoring (PY-6623) 2012-05-23 17:26:46 +04:00
Andrey Vlasovskikh c10a567b73 Refactored extract method tests 2012-05-22 22:23:35 +04:00
Andrey Vlasovskikh b2e5d4d80d Fixed global variable detection at the toplevel in extract method (PY-6619) 2012-05-22 15:54:57 +04:00
Andrey Vlasovskikh 16448bef80 Don't mark global symbols as inputs of code fragment (PY-6616) 2012-05-22 15:38:36 +04:00
Andrey Vlasovskikh 51ca6d51a1 Rewritten Python code fragment extraction based on CFG (PY-4156, PY-6414) 2012-05-21 18:21:38 +04:00
Andrey Vlasovskikh 110daa825e Tests for current bugs of extract method refactoring 2012-05-16 15:26:52 +04:00
Andrey Vlasovskikh 1c8d1c937b Don't suggest defined unread and unmodified variables in extract method (PY-6391) 2012-04-23 19:39:08 +04:00
Andrey Vlasovskikh a28d3a4eb5 Fixed bug in extract method refactoring for vars defined before and redefined inside the fragment (PY-6081) 2012-04-03 23:13:55 +04:00
Andrey Vlasovskikh 904a1be8ba Fixed extract method for assert type instructions in CFG (PY-5123) 2011-11-30 15:07:24 +04:00
Dmitry Jemerov 94b5529586 "extract method" handles @classmethod and @staticmethod correctly (PY-3228) 2011-04-02 20:01:55 +02:00
Dmitry Jemerov c9136f1bb8 PEP 8 compliant option for blank lines between top-level classes/functions (PY-2765) 2011-01-26 20:21:39 +01:00
Oleg Shpynov be555aa548 PY-1848 Unable to extract method from "else" part of try-except-else block 2010-09-15 20:07:03 +04:00
Oleg Shpynov d4864a3736 PY-542 Extract method - doesn't extract code with comments 2010-08-31 17:23:09 +04:00
Oleg Shpynov 26d26d605e PY-1635 Extract Method in middle of expression generates broken code 2010-08-30 14:10:13 +04:00
Oleg Shpynov da1b499091 PY-992 Extract Method doesn't handle conditional returns correctly 2010-06-16 18:24:07 +04:00
Dmitry Jemerov b1231ccb1e PostprocessReformattingAspect rewrite 2010-02-16 22:10:21 +03:00
Oleg Shpynov fae1fc8983 PY-461: Extract Method doesn​'​t handle '​self' parameter 2010-02-04 12:23:49 +03:00
Dmitry Jemerov 54d6b70c51 testdata discoverability, update testdata for new formatter behavior 2010-02-03 19:35:56 +03:00
Oleg Shpynov 4477b1acf8 Extract method fixes. PY-442 in particular 2010-02-03 17:49:42 +03:00
Oleg Shpynov 8973a64eff Py-419 and much more
First bunch of tests on extract method.
2010-02-02 14:05:23 +03:00