Commits
master
Name already in use
Commits on Feb 22, 2019
Commits on Dec 10, 2018
Commits on Dec 6, 2018
Commits on May 21, 2018
-
-
Fix ordering of starred, kwargs in calls for python 2 (#102)
* Add broken mixed call test for #101 * Fix starred args and kwargs ordering in calls for python 2
-
-
Commits on May 15, 2018
-
Group multiline expressions with parens, fix multiline string escaping (
#79) * Fix multiline string escaping, group multiline expressions with parens * Use groupConcat and indentConcat * Consistently use indentConcat and groupConcat * Extract parens printing logic into functions
Commits on May 11, 2018
-
* Add broken tests for #65 * Add long raise test * Fix typo * Improve raise printing * Add another test for raise * Use groupConcat and indentConcat
-
-
-
-
-
-
Add support for bytes strings (#91)
* Add support for bytes strings * Update old tests
-
-
Fix support for inline comments (#89)
* Add default values to locStart and locEnd * Return more token information for comments * Fix inline comments
-
-
-
* Add broken test case * Fix kwonlyargs printing when varargs were present * Move kwonlyargs tests to python3
-
* Fix nested if printing * Add additional nested if test
Commits on May 4, 2018
-
Multiline default args ordering fix (#78)
* Add failing test for args defaults ordering bug * Fix default args ordering bug
-
Add env flag for running tests with pycodestyle (#70)
Add optional PEP8_VALIDATE env flag for running prettier output from tests into pycodestyle. If pycodestyle returns any errors, the test fails. Adds pycodestyle as a vendor dependency. Several tests currently fail with the PEP8_VALIDATE flag enabled. Proof of concept for #1.
Commits on Mar 22, 2018
Commits on Mar 15, 2018
Commits on Mar 4, 2018
-
Don't add final empty line if file has no contents (#68)
Fix #60. Use same logic as prettier's printer-estree.js "Program" case.
Commits on Mar 2, 2018
-
This diff escapes line breaks used with `assert` and indents the wrapped portions.
-
Handle Python 2
withblocks and wrapping ofwithitems (#55)This diff handles Python 2's de-sugaring of a single `with` block's items into multiple nested AST nodes and is able to distinguish that case and reproduce accurate output based on the input code. It also handles wrapping long `with` blocks with many items. Fixes #51
-
Default print width to 79 (#53)
To be consistent with PEP8, set the default column margin to 79 characters. Add tests to check that 79 characters fits on one line but 80 characters breaks to another line. Fixes #14
Commits on Feb 27, 2018
Commits on Feb 22, 2018
-
Fix 'Value null is not a valid document' in case of a module less imp…
…ort from: (from .. import X) (#46)
-
Fail tests when encountering unknown node types (#27)
* Fail tests when encountering unknown node types Before, a basic test added for a new node type would not fail, since the default behavior for a node would be sufficient. While more advanced tests *would* fail (because the desired formatting behavior didn't happen), it still seems useful to have tests assert that all seen node types are known. I tested this by adding a test for a new node type (in a different diff) and seeing that the test failed as expected after making this change. I ran `yarn prettier` on the test file and saw that, while it complained about an unknown node, it didn't fail. * Use options rather than globals. * Revert "Use options rather than globals." This reverts commit 2d315d8. * Use env var rather than manually set globals.