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

vim: Parse skip_magic_trailing_comma from pyproject.toml #2613

Merged
merged 34 commits into from Nov 16, 2021

Commits on Sep 21, 2021

  1. added ability to parse magic trailing comma option from pyproject.tom…

    …l file to vim plugin
    Kyle Kovacs committed Sep 21, 2021
    Copy the full SHA
    23eac8c View commit details
    Browse the repository at this point in the history
  2. update CHANGES.md to include description of change

    Kyle Kovacs committed Sep 21, 2021
    Copy the full SHA
    8f2de88 View commit details
    Browse the repository at this point in the history
  3. clarify changes.md

    Kyle Kovacs committed Sep 21, 2021
    Copy the full SHA
    04de679 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2021

  1. merged with black/main

    Kyle Kovacs committed Oct 4, 2021
    Copy the full SHA
    69298f5 View commit details
    Browse the repository at this point in the history
  2. removed embarrassing git diff marker from CHANGES.md

    Kyle Kovacs committed Oct 4, 2021
    Copy the full SHA
    c39e6b5 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2021

  1. Copy the full SHA
    eae5ef5 View commit details
    Browse the repository at this point in the history
  2. chore(ci): use official Python 3.10 (#2521)

    Python 3.10 (final) was released yesterday and is now available on GHA!
    mkniewallner authored and JelleZijlstra committed Nov 16, 2021
    Copy the full SHA
    bfc56c6 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    8a2b612 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    e50a04a View commit details
    Browse the repository at this point in the history
  5. Define a stability policy (#2529)

    Fixes #2394. Eventually fixes #517.
    
    This is essentially @pradyunsg's suggestion from #2394. I suggest that at the
    same time we start the formal stability policy, we take a few other disruptive steps
    and drop Python 2 and the "b" marker.
    
    Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    3 people committed Nov 16, 2021
    Copy the full SHA
    3381b23 View commit details
    Browse the repository at this point in the history
  6. Disallow any Generics on mypy except in black_primer (#2556)

    Only black_primer needs the disallowal - means we'll
    get better typing everywhere else.
    nipunn1313 authored and JelleZijlstra committed Nov 16, 2021
    Copy the full SHA
    b13c652 View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    17ba917 View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    3969b9f View commit details
    Browse the repository at this point in the history
  9. Print out line diff on test failure (#2552)

    It currently prints both ASTs - this also
    adds the line diff, making it much easier to visualize
    the changes as well. Not too verbose since it's only a diff.
    nipunn1313 authored and JelleZijlstra committed Nov 16, 2021
    Copy the full SHA
    1607b79 View commit details
    Browse the repository at this point in the history
  10. Add --projects cli flag to black-primer (#2555)

    * Add --projects cli flag to black-primer
    
    Makes it possible to run a subset of projects on black primer
    
    * Refactor into click callback
    nipunn1313 authored and JelleZijlstra committed Nov 16, 2021
    Copy the full SHA
    c3a21e2 View commit details
    Browse the repository at this point in the history
  11. black-primer: Print summary after individual failures (#2570)

    If the individual failures are verbose, it's useful to have
    the summary at the end. Otherwise, it can be really difficult
    to figure out which projects have an issue.
    nipunn1313 authored and JelleZijlstra committed Nov 16, 2021
    Copy the full SHA
    74e07e5 View commit details
    Browse the repository at this point in the history
  12. fix: allow tests to be run from (hopefully) any directory (GH-2574)

    * fix: allow tests to be run from the tests/ directory
    * fix: try fixing windows build with MarcoGorelli's suggestion
    * Windows hotfix + better respect test's spirit
    
    Co-authored-by: Richard Si <63936253+ichard26@users.noreply.github.com>
    2 people authored and JelleZijlstra committed Nov 16, 2021
    Copy the full SHA
    dad36ea View commit details
    Browse the repository at this point in the history
  13. Copy the full SHA
    4438f53 View commit details
    Browse the repository at this point in the history
  14. Use STDIN project in test_projects to ensure it runs quickly (#2575)

    Existing test was actually running a full black-primer
    run which could be slow. This goes from 8 seconds to
    0.4 seconds on my machine.
    
    Needed to move to top level scope to leverage the caplog
    feature of pytest in order to test that the command line
    was parsing the bogus arguments and dumping to stderr.
    nipunn1313 authored and JelleZijlstra committed Nov 16, 2021
    Copy the full SHA
    e641afb View commit details
    Browse the repository at this point in the history
  15. Update bug template (#2538)

    felix-hilden authored and JelleZijlstra committed Nov 16, 2021
    Copy the full SHA
    212e0d2 View commit details
    Browse the repository at this point in the history
  16. Copy the full SHA
    c18400a View commit details
    Browse the repository at this point in the history
  17. Pin regex in docker to 2021.10.8 (GH-2579)

    * Pin regex in docker to 2021.10.8
    - This is due to 2021.10.8 having arm wheels and newer versions not
    
    I will go see if I can help restore arm build @ https://bitbucket.org/mrabarnett/mrab-regex/issues/399/missing-wheel-for-macosx-and-the-new-m1 soon.
    
    Test: Build on my M1 mac: `docker build -t cooperlees/black .`
    
    * Add in that the pin is only for docker
    cooperlees authored and JelleZijlstra committed Nov 16, 2021
    Copy the full SHA
    c592d0f View commit details
    Browse the repository at this point in the history
  18. Deprecate Python 2 formatting support (#2523)

    * Prepare for Python 2 depreciation
    
    - Use BlackRunner and .stdout in command line test
    
    So the next commit won't break this test. This is in its own commit so
    we can just revert the depreciation commit when dropping Python 2
    support completely.
    
    * Deprecate Python 2 formatting support
    ichard26 authored and JelleZijlstra committed Nov 16, 2021
    Copy the full SHA
    74985a3 View commit details
    Browse the repository at this point in the history
  19. install build-essential to compile dependencies and use multi-stage …

    …build (#2582)
    
    - Install build-essential to avoid build issues like #2568 when dependencies don't have prebuilt wheels available
    - Use multi-stage build instead of trying to purge packages and cache from the image
      Copying `/root/.local/` installs only black's built Python dependencies (< 20 MB).
      So the image is barely larger than python:3-slim base image
    vbarbaresi authored and JelleZijlstra committed Nov 16, 2021
    Copy the full SHA
    0983b22 View commit details
    Browse the repository at this point in the history
  20. Update CHANGES.md for 21.10b0 release (#2583)

    * Update CHANGES.md for 21.10b0 release
    
    * Update version in docs/usage_and_configuration/the_basics.md
    
    * Also update docs/integrations/source_version_control.md ...
    cooperlees authored and JelleZijlstra committed Nov 16, 2021
    Copy the full SHA
    a95e49c View commit details
    Browse the repository at this point in the history
  21. Add a missing space in Python 2 deprecation (GH-2590)

    `DEPRECATION: Python 2 support will be removed in the first stable releaseexpected in January 2022` - > `DEPRECATION: Python 2 support will be removed in the first stable release expected in January 2022`
    LordOfPolls authored and JelleZijlstra committed Nov 16, 2021
    Copy the full SHA
    b90f0db View commit details
    Browse the repository at this point in the history
  22. primer: Hypothesis now requires Python>=3.8 (GH-2602)

    looks like their project dev tooling uses some newer syntax or something
    ichard26 authored and JelleZijlstra committed Nov 16, 2021
    Copy the full SHA
    5a69ccc View commit details
    Browse the repository at this point in the history
  23. Improve Python 2 only syntax detection (GH-2592)

    * Improve Python 2 only syntax detection
    
    First of all this fixes a mistake I made in Python 2 deprecation PR
    using token.* to check for print/exec statements. Turns out that
    for nodes with a type value higher than 256 its numeric type isn't
    guaranteed to be constant. Using syms.* instead fixes this.
    
    Also add support for the following cases:
    
        print "hello, world!"
    
        exec "print('hello, world!')"
    
        def set_position((x, y), value):
            pass
    
        try:
            pass
        except Exception, err:
            pass
    
        raise RuntimeError, "I feel like crashing today :p"
    
        `wow_these_really_did_exist`
    
        10L
    
    * Add octal support, more test cases, and fixup long ints
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    ichard26 and JelleZijlstra committed Nov 16, 2021
    Copy the full SHA
    5cd3afe View commit details
    Browse the repository at this point in the history
  24. Fix typos (#2603)

    kianmeng authored and JelleZijlstra committed Nov 16, 2021
    Copy the full SHA
    c8bbe8b View commit details
    Browse the repository at this point in the history
  25. Bump deps in Pipfile.lock (GH-2605)

    Mostly because the hashes for typed-ast were valid for 1.4.2 when the
    version is pinned to 1.4.3 ... pipenv is pleasant to use /s
    ichard26 authored and JelleZijlstra committed Nov 16, 2021
    Copy the full SHA
    2e1b951 View commit details
    Browse the repository at this point in the history
  26. black/parser: partial support for pattern matching (#2586)

    Partial implementation for #2242. Only works when explicitly stated -t py310.
    
    Co-authored-by: Richard Si <63936253+ichard26@users.noreply.github.com>
    2 people authored and JelleZijlstra committed Nov 16, 2021
    Copy the full SHA
    3c2ea8a View commit details
    Browse the repository at this point in the history
  27. Allow install under pypy (#2559)

    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    Co-authored-by: Richard Si <63936253+ichard26@users.noreply.github.com>
    3 people committed Nov 16, 2021
    Copy the full SHA
    71e760c View commit details
    Browse the repository at this point in the history
  28. Copy the full SHA
    f7ff671 View commit details
    Browse the repository at this point in the history
  29. Update CHANGES.md

    JelleZijlstra committed Nov 16, 2021
    Copy the full SHA
    5f34c1c View commit details
    Browse the repository at this point in the history