Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Flag Options #2259

Merged
merged 16 commits into from Jun 2, 2021
Merged

Code Flag Options #2259

merged 16 commits into from Jun 2, 2021

Commits on May 26, 2021

  1. Adds Option Logic For Inline Code

    Properly handles the diff, color, and fast option when black is run with
     the `--code` option.
    
    Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
    HassanAbouelela committed May 26, 2021
    Copy the full SHA
    2bc78b3 View commit details
    Browse the repository at this point in the history
  2. Adds Code Option Tests

    Adds test for the CLI `--code` option.
    
    Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
    HassanAbouelela committed May 26, 2021
    Copy the full SHA
    7bb9937 View commit details
    Browse the repository at this point in the history
  3. Updates Docs With Code Options

    Updates the docs to remove the warning about the code options bug, and
    adds a changelog entry.
    
    Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
    HassanAbouelela committed May 26, 2021
    Copy the full SHA
    1d0faae View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    81ba0f6 View commit details
    Browse the repository at this point in the history
  5. Adds Missing CHANGE

    Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
    HassanAbouelela committed May 26, 2021
    Copy the full SHA
    7b8f6d2 View commit details
    Browse the repository at this point in the history
  6. Fixes Code Option Color On Windows

    Wraps the output stream for windows to fix the color option when using
    diff.
    
    Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
    HassanAbouelela committed May 26, 2021
    Copy the full SHA
    6221b88 View commit details
    Browse the repository at this point in the history
  7. Switches To Assert Format In Code Tests

    Switches to a plain assert instead of unittest's self.assertEqual in the
     `--code` option tests.
    
    Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
    HassanAbouelela committed May 26, 2021
    Copy the full SHA
    081a8e3 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2021

  1. Uses STDIN Formatter For Code Option

    Switches the code option to use the STDIN formatter instead of manually
    formatting the input, to add support for other flags, and properly
    handle the output.
    
    Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
    HassanAbouelela committed May 28, 2021
    Copy the full SHA
    eefcd2e View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into code-options

    # Conflicts:
    #	CHANGES.md
    HassanAbouelela committed May 28, 2021
    Copy the full SHA
    9221268 View commit details
    Browse the repository at this point in the history

Commits on May 29, 2021

  1. Use a fake Path

    JelleZijlstra committed May 29, 2021
    Copy the full SHA
    39c3ae1 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    5f85ff5 View commit details
    Browse the repository at this point in the history
  3. Remove Explicit Quiet Flags In Code Tests

    Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
    HassanAbouelela committed May 29, 2021
    Copy the full SHA
    a6a40ce View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    52f9543 View commit details
    Browse the repository at this point in the history
  5. Searches Current Directory When No Config Is Passed

    Changes the find project root function to look in the current directory
    instead of system root when no sources are passed.
    
    Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
    HassanAbouelela committed May 29, 2021
    Copy the full SHA
    37ff539 View commit details
    Browse the repository at this point in the history
  6. Searches Current Directory When No Config Is Passed

    Changes the find project root function to look in the current directory
    instead of system root when no sources are passed.
    
    Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
    HassanAbouelela committed May 29, 2021
    Copy the full SHA
    81b2458 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2021

  1. Makes Mock Call Assertions Compatible With <py3.8

    Changes the assertions made on mock calls to work with python version
    earlier than 3.8.
    
    Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
    HassanAbouelela committed Jun 2, 2021
    Copy the full SHA
    adaa41e View commit details
    Browse the repository at this point in the history