Bill Wendling | dcafd5f | 2015-09-12 15:26:03 -0700 | [diff] [blame] | 1 | # Change Log |
| 2 | # All notable changes to this project will be documented in this file. |
| 3 | # This project adheres to [Semantic Versioning](http://semver.org/). |
| 4 | |
Bill Wendling | 4dc472d | 2016-04-10 03:03:55 -0700 | [diff] [blame] | 5 | ## [0.7.1] UNRELEASED |
| 6 | ### Fixed |
| 7 | - Don't rewrite the file if there are no changes. |
Bill Wendling | ac00a25 | 2016-04-12 05:31:03 -0700 | [diff] [blame] | 8 | - Ensure the proper number of blank lines before an async function. |
Bill Wendling | c4a4965 | 2016-04-13 13:42:43 -0700 | [diff] [blame] | 9 | - Split after a bitwise operator when in PEP 8 mode. |
Bill Wendling | 423759f | 2016-04-14 21:14:20 -0700 | [diff] [blame^] | 10 | - Retain the splitting within a dictionary data literal between the key and |
| 11 | value. |
Bill Wendling | 4dc472d | 2016-04-10 03:03:55 -0700 | [diff] [blame] | 12 | |
Bill Wendling | defe5f3 | 2016-04-09 22:29:51 -0700 | [diff] [blame] | 13 | ## [0.7.0] 2016-04-09 |
Bill Wendling | 2e58851 | 2016-03-13 01:02:47 -0800 | [diff] [blame] | 14 | ### Added |
Bill Wendling | 5758e4d | 2016-03-19 03:38:48 -0700 | [diff] [blame] | 15 | - Support for Python 3.5. |
| 16 | - Add 'ALLOW_MULTILINE_LAMBDAS' which allows lambdas to be formatted onto |
| 17 | multiple lines. |
Bill Wendling | 2e58851 | 2016-03-13 01:02:47 -0800 | [diff] [blame] | 18 | |
| 19 | ### Fixed |
| 20 | - Lessen penalty for splitting before a dictionary keyword. |
Bill Wendling | 90a2aa5 | 2016-03-20 02:25:13 -0700 | [diff] [blame] | 21 | - Formatting of trailing comments on disabled formatting lines. |
Bill Wendling | 2064d88 | 2016-04-09 22:21:15 -0700 | [diff] [blame] | 22 | - Disable / enable formatting at end of multi-line comment. |
Bill Wendling | 2e58851 | 2016-03-13 01:02:47 -0800 | [diff] [blame] | 23 | |
Bill Wendling | 0bca2aa | 2016-03-06 20:44:14 -0800 | [diff] [blame] | 24 | ## [0.6.3] 2016-03-06 |
| 25 | ### Changed |
| 26 | - Documentation updated. |
| 27 | |
Bill Wendling | 95e47b9 | 2015-11-04 22:58:30 -0800 | [diff] [blame] | 28 | ### Fixed |
| 29 | - Fix spacing of multiline comments when formatting is disabled. |
| 30 | |
Bill Wendling | 9ffd815 | 2015-11-01 17:49:25 -0800 | [diff] [blame] | 31 | ## [0.6.2] 2015-11-01 |
Bill Wendling | 6e8ca7b | 2015-10-25 01:16:43 -0700 | [diff] [blame] | 32 | ### Changed |
| 33 | - Look at the 'setup.cfg' file to see if it contains style information for |
| 34 | YAPF. |
Bill Wendling | 169790e | 2015-10-25 03:13:13 -0700 | [diff] [blame] | 35 | - Look at the '~/.config/yapf/style' file to see if it contains global style |
| 36 | information for YAPF. |
Bill Wendling | 6e8ca7b | 2015-10-25 01:16:43 -0700 | [diff] [blame] | 37 | |
Bill Wendling | 57ffbbb | 2015-10-25 00:20:14 -0700 | [diff] [blame] | 38 | ### Fixed |
| 39 | - Make lists that can fit on one line more likely to stay together. |
Bill Wendling | 5091fa6 | 2015-10-28 01:51:53 -0700 | [diff] [blame] | 40 | - Correct formatting of '*args' and '**kwargs' when there are default values in |
| 41 | the argument list. |
Bill Wendling | 57ffbbb | 2015-10-25 00:20:14 -0700 | [diff] [blame] | 42 | |
Bill Wendling | 348b2f3 | 2015-10-24 03:20:10 -0700 | [diff] [blame] | 43 | ## [0.6.1] 2015-10-24 |
Bill Wendling | 3a3cb6d | 2015-10-20 13:40:27 -0700 | [diff] [blame] | 44 | ### Fixed |
| 45 | - Make sure to align comments in data literals correctly. Also make sure we |
| 46 | don't count a "#." in a string as an i18n comment. |
Bill Wendling | a6b57a6 | 2015-10-20 13:57:52 -0700 | [diff] [blame] | 47 | - Retain proper vertical spacing before comments in a data literal. |
Bill Wendling | 843e48c | 2015-10-20 16:53:08 -0700 | [diff] [blame] | 48 | - Make sure that continuations from a compound statement are distinguished from |
| 49 | the succeeding line. |
Bill Wendling | 81e37b6 | 2015-10-21 13:18:29 -0700 | [diff] [blame] | 50 | - Ignore preceding comments when calculating what is a "dictonary maker". |
Bill Wendling | a558572 | 2015-10-21 15:32:22 -0700 | [diff] [blame] | 51 | - Add a small penalty for splitting before a closing bracket. |
Bill Wendling | dbcf342 | 2015-10-21 22:11:15 -0700 | [diff] [blame] | 52 | - Ensure that a space is enforced after we remove a pseudo-paren that's between |
| 53 | two names, keywords, numbers, etc. |
Bill Wendling | f885672 | 2015-10-21 23:53:29 -0700 | [diff] [blame] | 54 | - Increase the penalty for splitting after a pseudo-paren. This could lead to |
| 55 | less readable code in some circumstances. |
Bill Wendling | 3a3cb6d | 2015-10-20 13:40:27 -0700 | [diff] [blame] | 56 | |
Bill Wendling | 7ef492b | 2015-10-18 14:43:06 -0700 | [diff] [blame] | 57 | ## [0.6.0] 2015-10-18 |
Bill Wendling | a5cef8e | 2015-10-15 21:42:03 -0700 | [diff] [blame] | 58 | ### Added |
| 59 | - Add knob to indent the dictionary value if there is a split before it. |
| 60 | |
Bill Wendling | cec6696 | 2015-10-17 04:08:23 -0700 | [diff] [blame] | 61 | ### Changed |
| 62 | - No longer check that a file is a "Python" file unless the '--recursive' flag |
| 63 | is specified. |
| 64 | - No longer allow the user to specify a directory unless the '--recursive' flag |
| 65 | is specified. |
| 66 | |
Bill Wendling | c87690c | 2015-10-11 16:45:21 -0700 | [diff] [blame] | 67 | ### Fixed |
| 68 | - When determining if we should split a dictionary's value to a new line, use |
| 69 | the longest entry instead of the total dictionary's length. This allows the |
| 70 | formatter to reformat the dictionary in a more consistent manner. |
Bill Wendling | 0946c0f | 2015-10-12 00:42:30 -0700 | [diff] [blame] | 71 | - Improve how list comprehensions are formatted. Make splitting dependent upon |
| 72 | whether the "comp_for" or "comp_if" goes over the column limit. |
Bill Wendling | 43bdc7b | 2015-10-12 14:25:30 -0700 | [diff] [blame] | 73 | - Don't over indent if expression hanging indents if we expect to dedent the |
| 74 | closing bracket. |
Bill Wendling | c1052c6 | 2015-10-15 03:12:28 -0700 | [diff] [blame] | 75 | - Improve splitting heuristic when the first argument to a function call is |
| 76 | itself a function call with arguments. In cases like this, the remaining |
| 77 | arguments to the function call would look badly aligned, even though they are |
| 78 | techincally correct (the best kind of correct!). |
Bill Wendling | b1037b5 | 2015-10-15 22:38:19 -0700 | [diff] [blame] | 79 | - Improve splitting heuristic more so that if the first argument to a function |
| 80 | call is a data literal that will go over the column limit, then we want to |
| 81 | split before it. |
Bill Wendling | 8d8f512 | 2015-10-16 11:46:23 -0700 | [diff] [blame] | 82 | - Remove spaces around '**' operator. |
Bill Wendling | f8325e6 | 2015-10-16 15:38:54 -0700 | [diff] [blame] | 83 | - Retain formatting of comments in the middle of an expression. |
Bill Wendling | 454cef6 | 2015-10-18 03:49:03 -0700 | [diff] [blame] | 84 | - Don't add a newline to an empty file. |
Bill Wendling | 7ef492b | 2015-10-18 14:43:06 -0700 | [diff] [blame] | 85 | - Over indent a function's parameter list if it's not distinguished from the |
| 86 | body of the function. |
Bill Wendling | c87690c | 2015-10-11 16:45:21 -0700 | [diff] [blame] | 87 | |
Bill Wendling | 2aff7fc | 2015-10-11 14:08:10 -0700 | [diff] [blame] | 88 | ## [0.5.0] 2015-10-11 |
Bill Wendling | d03c99f | 2015-10-08 21:06:07 -0700 | [diff] [blame] | 89 | ### Added |
| 90 | - Add option to exclude files/directories from formatting. |
Bill Wendling | 5c60873 | 2015-10-10 23:39:16 -0700 | [diff] [blame] | 91 | - Add a knob to control whether import names are split after the first '('. |
Bill Wendling | d03c99f | 2015-10-08 21:06:07 -0700 | [diff] [blame] | 92 | |
Bill Wendling | a7e3f50 | 2015-10-08 00:23:40 -0700 | [diff] [blame] | 93 | ### Fixed |
| 94 | - Indent the continuation of an if-then statement when it's not distinguished |
| 95 | from the body of the if-then. |
Bill Wendling | 1ce18c7 | 2015-10-10 23:12:16 -0700 | [diff] [blame] | 96 | - Allow for sensible splitting of array indices where appropriate. |
Bill Wendling | be974d8 | 2015-10-11 01:04:00 -0700 | [diff] [blame] | 97 | - Prefer to not split before the ending bracket of an atom. This produces |
| 98 | better code in most cases. |
Bill Wendling | bbd148c | 2015-10-11 01:45:24 -0700 | [diff] [blame] | 99 | - Corrected how horizontal spaces were presevered in a disabled region. |
Bill Wendling | a7e3f50 | 2015-10-08 00:23:40 -0700 | [diff] [blame] | 100 | |
Bill Wendling | 967c3b2 | 2015-10-07 22:20:18 -0700 | [diff] [blame] | 101 | ## [0.4.0] 2015-10-07 |
Ćukasz Langa | 9408987 | 2015-09-22 16:02:26 -0700 | [diff] [blame] | 102 | ### Added |
| 103 | - Support for dedenting closing brackets, "facebook" style. |
| 104 | |
Bill Wendling | 25c8e60 | 2015-10-04 20:48:35 -0700 | [diff] [blame] | 105 | ### Fixed |
| 106 | - Formatting of tokens after a multiline string didn't retain their horizontal |
| 107 | spacing. |
| 108 | |
Bill Wendling | 06865ab | 2015-09-30 01:25:47 -0700 | [diff] [blame] | 109 | ## [0.3.1] 2015-09-30 |
| 110 | ### Fixed |
| 111 | - Format closing scope bracket correctly when indentation size changes. |
| 112 | |
Bill Wendling | a690a62 | 2015-09-20 12:38:50 -0700 | [diff] [blame] | 113 | ## [0.3.0] 2015-09-20 |
| 114 | ### Added |
| 115 | - Return a 2 if the source changed, 1 on error, and 0 for no change. |
| 116 | |
| 117 | ### Fixed |
| 118 | - Make sure we format if the "lines" specified are in the middle of a |
| 119 | statement. |
| 120 | |
Bill Wendling | 9adfa0c | 2015-09-13 05:37:30 -0700 | [diff] [blame] | 121 | ## [0.2.9] - 2015-09-13 |
| 122 | ### Fixed |
| 123 | - Formatting of multiple files. It was halting after formatting the first file. |
| 124 | |
Bill Wendling | dcafd5f | 2015-09-12 15:26:03 -0700 | [diff] [blame] | 125 | ## [0.2.8] - 2015-09-12 |
| 126 | ### Added |
| 127 | - Return a non-zero exit code if the source was changed. |
| 128 | - Add bitwise operator splitting penalty and prefer to split before bitwise |
| 129 | operators. |
| 130 | |
| 131 | ### Fixed |
| 132 | - Retain vertical spacing between disabled and enabled lines. |
| 133 | - Split only at start of named assign. |
| 134 | - Retain comment position when formatting is disabled. |
| 135 | - Honor splitting before or after logical ops. |