Commit Graph
38 Commits
Author SHA1 Message Date
Mikhail Golubev 5b763d7de7 PY-17979 Reverted controversial fix for the PY-13304
Continuation indent is used for function arguments only to avoid
structure ambiguity.
2016-01-13 20:19:39 +03:00
Mikhail Golubev c9a2a6396f PY-13304 Always use continuation indent after function arguments
It probably conflicts with existing fix for PY-12749.
2015-11-09 13:51:12 +03:00
Mikhail Golubev 1a92e7e12f PY-17360 Allow to extract qualifier of a call expression 2015-10-26 15:19:40 +03:00
Mikhail Golubev f62c5c176d PY-17333 Find expression to extract when caret is in the end of a statement 2015-10-26 15:19:40 +03:00
Mikhail Golubev 634be82fe9 PY-17331 Consider "class" as reserved word in Python, not "__class__" 2015-10-25 15:49:44 +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
Andrey Vlasovskikh a1476e9c85 Revert "PY-16078 Default right margin is 99 characters according to updated PEP-8"
This reverts commit 2175deac00.
2015-06-29 20:00:33 +03:00
Mikhail Golubev 2175deac00 PY-16078 Default right margin is 99 characters according to updated PEP-8 2015-06-03 13:48:22 +03:00
Mikhail Golubev 800dc9e422 PY-13264 Consider qualifier of reference expression when collecting names used in function 2014-11-25 17:36:29 +03:00
Mikhail Golubev 96dd88677e PY-5475 Don't attempt to inline expression if it contains comments 2014-09-25 14:10:37 +04:00
Mikhail Golubev 7a52f867d4 Fix trying to insert declaration in dummy.py file for extract variable 2014-08-09 01:54:05 +04:00
Ekaterina Tuzova 6eb412713f fixed PY-11909 problem with extract variable 2014-05-14 19:50:32 +04:00
Ekaterina Tuzova 0a38c715d8 fixed PY-10964 Extract variable doesn't work as expected inside brackets
fixed PY-10221 Refactor->Extract->Variable may break square bracket symmetry and may break user input

there are overlapped reference in python for slice expression (P['x']) one for the reference itself, one for the operator [
2013-10-08 17:07:37 +04:00
Dmitry Jemerov 950c820cc0 optional space before backslash (on by default) in python code style settings (PY-5674) 2013-01-29 20:31:08 +01:00
Andrey Vlasovskikh b5874c65f6 Introduce substring for new-style formatted strings (PY-8372) 2013-01-10 21:20:51 +04:00
Andrey Vlasovskikh 7230e05c77 Don't allow selection to break new-style formatting when extracting substrings (PY-8372) 2013-01-09 19:06:31 +04:00
Andrey Vlasovskikh e21a930977 Introduce refactoring for substrings of %-formatted strings with single value (PY-3654) 2012-12-28 21:38:42 +04:00
Andrey Vlasovskikh c229061331 Introduce refactoring for substrings of %-formatted strings with named substitutions (PY-3654) 2012-12-28 20:09:30 +04:00
Andrey Vlasovskikh 16ac7aa372 Introduce refactoring for strings with %-based positional formatting (PY-3654) 2012-12-27 22:55:08 +04:00
Andrey Vlasovskikh 04eafc4693 %-based formatting for plain string literals, concat-based formatting for concat strings (PY-3654) 2012-12-27 20:23:41 +04:00
Andrey Vlasovskikh f2bc06d0ac Protection against breaking escaping and formatting of substrings in introduce refactoring (PY-3654) 2012-12-27 16:51:49 +04:00
Andrey Vlasovskikh 9d80d6f98c Initial implementation of introduce refactoring for substrings (PY-3654) 2012-12-19 20:07:38 +04:00
Dmitry Jemerov e735ebc7ef introduce variable handles multiline string literals (PY-6698) 2012-08-07 16:00:52 +02:00
Dmitry Jemerov af2fc97a8e handle backslashes in introduce variable initializer correctly (PY-6908); formatter removes spaces around dot 2012-08-07 14:39:20 +02:00
Dmitry Jemerov da1ac53bb4 don't shadow built-in names in introduce variable (PY-5626) 2012-03-02 19:01:22 +01:00
Dmitry Jemerov 43df68cef6 call in qualifier of assignment LHS should be parsed as reference expression, not target expression (PY-5062) 2011-11-21 18:41:39 +01:00
Dmitry Jemerov fab96fdad6 don't replace line breaks with spaces inside string literals (PY-4962) 2011-11-15 19:00:54 +01:00
Dmitry Jemerov 2e458532ac don't suggest any used names as name candidates for introduce variable (PY-4605) 2011-11-02 21:19:49 +01:00
Dmitry Jemerov 266002ee0e in-place refactorings don't suggest names of built-in types (PY-4474) 2011-09-06 16:50:43 +02:00
Dmitry Jemerov 72b1cef3e1 another case of meaningless introduce (PY-4456) 2011-09-05 20:40:57 +02:00
Dmitry Jemerov 7f7b9d8a9f SIOOBE (PY-4455) 2011-09-05 20:40:57 +02:00
Dmitry Jemerov 3c305816c4 introduce variable handles multiline expressions better (PY-2862) 2011-02-22 16:03:25 +01:00
Dmitry Jemerov a495eeb447 remove quotes from string when suggesting name (last remaining part of PY-1276) 2011-01-25 15:26:56 +01:00
Dmitry Jemerov ffa8df5522 Introduce Variable ignores leading whitespace of selection (PY-1338) 2010-07-27 21:34:54 +04:00
Dmitry Jemerov 8296ae1f1c allow evaluating method return type while calculating Introduce Variable name suggestions (PY-1336) 2010-07-21 20:06:29 +04:00
Dmitry Jemerov 1a445bce8e Introduce inside argument list suggests names based on argument names (PY-1260) 2010-07-17 19:46:53 +04:00
Dennis Ushakov 655cd59f5b PY-995 fix introduce* incorrectly working with assignment left part 2010-05-16 15:29:11 +04:00
Dmitry Jemerov b4b09995ff introduce variable: fix broken formatting, add test, set explicit caret position after refactoring, cleanup 2010-05-13 22:38:07 +04:00