Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commits

Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Commits on Feb 22, 2019

  1. Copy the full SHA
    d59dca4 View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2018

  1. Add license (#116)

    patrick91 committed Dec 10, 2018
    Copy the full SHA
    0aa2517 View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2018

  1. Update README.md (#114)

    kazhuravlev authored and patrick91 committed Dec 6, 2018
    Copy the full SHA
    75c1991 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2018

  1. Copy the full SHA
    04dc40a View commit details
    Browse the repository at this point in the history

Commits on May 21, 2018

  1. Copy the full SHA
    036c8a6 View commit details
    Browse the repository at this point in the history
  2. 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
    ryanashcraft authored and patrick91 committed May 21, 2018
    Copy the full SHA
    dfb3f69 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    335b70b View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    d414a0c View commit details
    Browse the repository at this point in the history

Commits on May 15, 2018

  1. 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
    ryanashcraft committed May 15, 2018
    Copy the full SHA
    dab3d3f View commit details
    Browse the repository at this point in the history

Commits on May 11, 2018

  1. Improve raise printing (#66)

    * Add broken tests for #65
    
    * Add long raise test
    
    * Fix typo
    
    * Improve raise printing
    
    * Add another test for raise
    
    * Use groupConcat and indentConcat
    patrick91 authored and FuegoFro committed May 11, 2018
    Copy the full SHA
    9b62d41 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    398b77a View commit details
    Browse the repository at this point in the history
  3. Add support for uadd (#95)

    patrick91 committed May 11, 2018
    Copy the full SHA
    9b60f4f View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    d4a7885 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    2d8713c View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    c95164c View commit details
    Browse the repository at this point in the history
  7. Add support for bytes strings (#91)

    * Add support for bytes strings
    
    * Update old tests
    patrick91 committed May 11, 2018
    Copy the full SHA
    46171b9 View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    d02d651 View commit details
    Browse the repository at this point in the history
  9. Fix support for inline comments (#89)

    * Add default values to locStart and locEnd
    
    * Return more token information for comments
    
    * Fix inline comments
    patrick91 committed May 11, 2018
    Copy the full SHA
    cdbf75e View commit details
    Browse the repository at this point in the history
  10. Copy the full SHA
    4781c7e View commit details
    Browse the repository at this point in the history
  11. Copy the full SHA
    896324d View commit details
    Browse the repository at this point in the history
  12. Fix arguments printing (#62)

    * Add broken test case
    
    * Fix kwonlyargs printing when varargs were present
    
    * Move kwonlyargs tests to python3
    patrick91 committed May 11, 2018
    Copy the full SHA
    0f9792e View commit details
    Browse the repository at this point in the history
  13. Fix nested ifs (#85)

    * Fix nested if printing
    
    * Add additional nested if test
    patrick91 committed May 11, 2018
    Copy the full SHA
    28ef42b View commit details
    Browse the repository at this point in the history

Commits on May 4, 2018

  1. Multiline default args ordering fix (#78)

    * Add failing test for args defaults ordering bug
    
    * Fix default args ordering bug
    ryanashcraft authored and patrick91 committed May 4, 2018
    Copy the full SHA
    a2a9b8c View commit details
    Browse the repository at this point in the history
  2. 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.
    ryanashcraft authored and patrick91 committed May 4, 2018
    Copy the full SHA
    d75742f View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2018

  1. Copy the full SHA
    9e3c138 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2018

  1. Copy the full SHA
    f3fc9f7 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2018

  1. 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.
    ryanashcraft authored and patrick91 committed Mar 4, 2018
    Copy the full SHA
    8762d1c View commit details
    Browse the repository at this point in the history
  2. Add support for Invert AST type (#67)

    Fixes #58.
    ryanashcraft authored and FuegoFro committed Mar 4, 2018
    Copy the full SHA
    bff4f63 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2018

  1. Wrap assert correctly (#56)

    This diff escapes line breaks used with `assert` and indents the wrapped portions.
    FuegoFro authored and patrick91 committed Mar 2, 2018
    Copy the full SHA
    e7f8446 View commit details
    Browse the repository at this point in the history
  2. Handle Python 2 with blocks and wrapping of with items (#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
    FuegoFro authored and patrick91 committed Mar 2, 2018
    Copy the full SHA
    03b3b81 View commit details
    Browse the repository at this point in the history
  3. 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
    FuegoFro authored and patrick91 committed Mar 2, 2018
    Copy the full SHA
    ef1b3ed View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2018

  1. Copy the full SHA
    dd34cb1 View commit details
    Browse the repository at this point in the history
  2. Space with arguments (#49)

    paradoxxxzero authored and patrick91 committed Feb 27, 2018
    Copy the full SHA
    2afced9 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2018

  1. Fix 'Value null is not a valid document' in case of a module less imp…

    …ort from: (from .. import X) (#46)
    paradoxxxzero authored and patrick91 committed Feb 22, 2018
    Copy the full SHA
    91387a4 View commit details
    Browse the repository at this point in the history
  2. 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.
    FuegoFro authored and patrick91 committed Feb 22, 2018
    Copy the full SHA
    ec2c04a View commit details
    Browse the repository at this point in the history
Older