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

Blacken source code #404

Merged
merged 3 commits into from Sep 26, 2021
Merged

Blacken source code #404

merged 3 commits into from Sep 26, 2021

Commits on Sep 26, 2021

  1. Blacken source code

    climbus authored and lieryan committed Sep 26, 2021
    Configuration menu
    Copy the full SHA
    ae87aa3 View commit details
    Browse the repository at this point in the history
  2. Add pyproject.toml to avoid re-running black on ropetest

    black currently has poor multi-line string treatment for dedent()-ed code.
    
    I've ran aneeshusa's 'black' branch psf/black#1879
    on ropetest instead, which leaves dedent()-ed lines alone while doing
    all its other cleanups.
    
    However most people likely will be running mainline black which would
    have mucked the formatting in these files, so I've also added an
    exclusion rule in pyproject.toml to prevent people from accidentally
    auto-formatting ropetest again.
    
    Until aneeshusa's branch are merged into mainline black, or black has a
    proper solution for dedent()-ed code, be careful of running black on
    ropetest.
    lieryan committed Sep 26, 2021
    Configuration menu
    Copy the full SHA
    719f071 View commit details
    Browse the repository at this point in the history
  3. Add .git-blame-ignore-revs file

    This prevents black reformatting commit from messing with git blame.
    
    You may need to run the following to configure `git blame` to read the ignore
    file.
    
        git config blame.ignoreRevsFile .git-blame-ignore-revs
    lieryan committed Sep 26, 2021
    Configuration menu
    Copy the full SHA
    73031ac View commit details
    Browse the repository at this point in the history