-
Notifications
You must be signed in to change notification settings - Fork 1
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
Bump from upstream #3
Commits on Dec 15, 2021
-
Bump myst-parser from 0.15.2 to 0.16.0 in /docs (psfGH-2696)
Bumps [myst-parser](https://github.com/executablebooks/MyST-Parser) from 0.15.2 to 0.16.0. - [Release notes](https://github.com/executablebooks/MyST-Parser/releases) - [Changelog](https://github.com/executablebooks/MyST-Parser/blob/master/CHANGELOG.md) - [Commits](executablebooks/MyST-Parser@v0.15.2...v0.16.0) --- updated-dependencies: - dependency-name: myst-parser dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for e9f520c - Browse repository at this point
Copy the full SHA e9f520cView commit details -
Bump pre-commit/action from 2.0.2 to 2.0.3 (psfGH-2695)
Bumps [pre-commit/action](https://github.com/pre-commit/action) from 2.0.2 to 2.0.3. - [Release notes](https://github.com/pre-commit/action/releases) - [Commits](pre-commit/action@v2.0.2...v2.0.3) --- updated-dependencies: - dependency-name: pre-commit/action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for f10ce0c - Browse repository at this point
Copy the full SHA f10ce0cView commit details
Commits on Dec 16, 2021
-
Configuration menu - View commit details
-
Copy full SHA for dc90d49 - Browse repository at this point
Copy the full SHA dc90d49View commit details -
Configuration menu - View commit details
-
Copy full SHA for 61fe841 - Browse repository at this point
Copy the full SHA 61fe841View commit details
Commits on Dec 17, 2021
-
Configuration menu - View commit details
-
Copy full SHA for b97ec62 - Browse repository at this point
Copy the full SHA b97ec62View commit details
Commits on Dec 20, 2021
-
Bump sphinx from 4.3.1 to 4.3.2 in /docs (psf#2709)
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 4.3.1 to 4.3.2. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES) - [Commits](sphinx-doc/sphinx@v4.3.1...v4.3.2) --- updated-dependencies: - dependency-name: sphinx dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 6ef3e46 - Browse repository at this point
Copy the full SHA 6ef3e46View commit details -
Bump myst-parser from 0.16.0 to 0.16.1 in /docs (psf#2710)
Bumps [myst-parser](https://github.com/executablebooks/MyST-Parser) from 0.16.0 to 0.16.1. - [Release notes](https://github.com/executablebooks/MyST-Parser/releases) - [Changelog](https://github.com/executablebooks/MyST-Parser/blob/master/CHANGELOG.md) - [Commits](executablebooks/MyST-Parser@v0.16.0...v0.16.1) --- updated-dependencies: - dependency-name: myst-parser dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for c5b458e - Browse repository at this point
Copy the full SHA c5b458eView commit details
Commits on Dec 21, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 389e9c2 - Browse repository at this point
Copy the full SHA 389e9c2View commit details -
Define is_name_token (and friends) to resolve some
type: ignore
s (p……sfGH-2714) Gets rid of a few # type: ignores by using TypeGuard.
Configuration menu - View commit details
-
Copy full SHA for 7c94ed6 - Browse repository at this point
Copy the full SHA 7c94ed6View commit details -
Configuration menu - View commit details
-
Copy full SHA for c758126 - Browse repository at this point
Copy the full SHA c758126View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3fafd80 - Browse repository at this point
Copy the full SHA 3fafd80View commit details -
Update contributing wording (psf#2719)
Co-authored-by: Jelle Zijlstra <[email protected]> Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f0a99f6 - Browse repository at this point
Copy the full SHA f0a99f6View commit details
Commits on Dec 25, 2021
-
Configuration menu - View commit details
-
Copy full SHA for ced2d65 - Browse repository at this point
Copy the full SHA ced2d65View commit details -
Support pytest 7 by fixing broken imports (psfGH-2705)
The tmp_path related changes are not necessary to make pytest 7 work, but it feels more complete this way.
Configuration menu - View commit details
-
Copy full SHA for 092959f - Browse repository at this point
Copy the full SHA 092959fView commit details
Commits on Dec 30, 2021
-
Drop upper version bounds on dependencies (psfGH-2718)
They mostly cause unnecessary trouble. Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b8df7e4 - Browse repository at this point
Copy the full SHA b8df7e4View commit details
Commits on Dec 31, 2021
-
Primer: exclude crashing sqlalchemy file for now (psfGH-2735)
Until we can properly look into and fix it. -> psf#2734
Configuration menu - View commit details
-
Copy full SHA for 4f5268a - Browse repository at this point
Copy the full SHA 4f5268aView commit details
Commits on Jan 2, 2022
-
Documentation: include Wing IDE 8 integrations (psfGH-2733)
Wing IDE 8 now supports autoformatting w/ Black natively 🎉 Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8a84beb - Browse repository at this point
Copy the full SHA 8a84bebView commit details
Commits on Jan 7, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 668bace - Browse repository at this point
Copy the full SHA 668baceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 05e1fbf - Browse repository at this point
Copy the full SHA 05e1fbfView commit details -
Configuration menu - View commit details
-
Copy full SHA for ea4c772 - Browse repository at this point
Copy the full SHA ea4c772View commit details -
Configuration menu - View commit details
-
Copy full SHA for e64949e - Browse repository at this point
Copy the full SHA e64949eView commit details
Commits on Jan 10, 2022
-
Remove Python 2 support (psf#2740)
*blib2to3's support was left untouched because: 1) I don't want to touch parsing machinery, and 2) it'll allow us to provide a more useful error message if someone does try to format Python 2 code.
Configuration menu - View commit details
-
Copy full SHA for e401b6b - Browse repository at this point
Copy the full SHA e401b6bView commit details -
Black would now echo the location that it determined as the root path for the project if `--verbose` is enabled by the user, according to which it chooses the SRC paths, i.e. the absolute path of the project is `{root}/{src}`. Closes psf#1880
Configuration menu - View commit details
-
Copy full SHA for 521d1b8 - Browse repository at this point
Copy the full SHA 521d1b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e73152 - Browse repository at this point
Copy the full SHA 3e73152View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f26a03 - Browse repository at this point
Copy the full SHA 0f26a03View commit details
Commits on Jan 11, 2022
-
Change git url for pip installation in README (psf#2761)
* Change git url for pip installation in README Unauthenticated git protocol was disabled recently by Github and should not be used anymore. https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git * Update CHANGES.md
Configuration menu - View commit details
-
Copy full SHA for 4efb795 - Browse repository at this point
Copy the full SHA 4efb795View commit details -
Change installation url to comply with git security change (psf#2765)
Co-authored-by: Jeffrey Lazar <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8954e58 - Browse repository at this point
Copy the full SHA 8954e58View commit details
Commits on Jan 13, 2022
-
don't expect changes on poetry (psf#2769)
They just made themselves ESP-compliant in python-poetry/poetry@ecb030e
Configuration menu - View commit details
-
Copy full SHA for f298032 - Browse repository at this point
Copy the full SHA f298032View commit details -
Configuration menu - View commit details
-
Copy full SHA for 799f76f - Browse repository at this point
Copy the full SHA 799f76fView commit details
Commits on Jan 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 7a29568 - Browse repository at this point
Copy the full SHA 7a29568View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5543d1b - Browse repository at this point
Copy the full SHA 5543d1bView commit details -
CI: add diff-shades integration (psf#2725)
Hopefully this makes it much easier to gauge the impacts of future changes!
Configuration menu - View commit details
-
Copy full SHA for 565f9c9 - Browse repository at this point
Copy the full SHA 565f9c9View commit details
Commits on Jan 15, 2022
-
Dont require typing-extensions in 3.10 (psfGH-2772)
3.10 ships with TypeGuard which is the newest feature we need. Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5fe6d48 - Browse repository at this point
Copy the full SHA 5fe6d48View commit details -
Configuration menu - View commit details
-
Copy full SHA for 33e3bb1 - Browse repository at this point
Copy the full SHA 33e3bb1View commit details
Commits on Jan 17, 2022
-
Bump sphinx from 4.3.2 to 4.4.0 in /docs (psf#2776)
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 4.3.2 to 4.4.0. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES) - [Commits](sphinx-doc/sphinx@v4.3.2...v4.4.0) --- updated-dependencies: - dependency-name: sphinx dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 1d2ed2b - Browse repository at this point
Copy the full SHA 1d2ed2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 98db4ab - Browse repository at this point
Copy the full SHA 98db4abView commit details
Commits on Jan 20, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 8c22d23 - Browse repository at this point
Copy the full SHA 8c22d23View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bd4134 - Browse repository at this point
Copy the full SHA 9bd4134View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e97c5f - Browse repository at this point
Copy the full SHA 6e97c5fView commit details -
Hint at likely cause of ast parsing failure in error message (psf#2786)
Co-authored-by: Batuhan Taskaya <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]> Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e66e0f8 - Browse repository at this point
Copy the full SHA e66e0f8View commit details
Commits on Jan 21, 2022
-
Add support for custom python cell magics (psf#2744)
Fixes psf#2742. This PR adds the ability to configure additional python cell magics. This will allow formatting cells in Jupyter Notebooks that are using custom (python) magics.
Configuration menu - View commit details
-
Copy full SHA for 4ea75cd - Browse repository at this point
Copy the full SHA 4ea75cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for e0c5728 - Browse repository at this point
Copy the full SHA e0c5728View commit details -
Configuration menu - View commit details
-
Copy full SHA for 95c03b9 - Browse repository at this point
Copy the full SHA 95c03b9View commit details -
- Add Furo dependency to docs/requirements.txt - Drop a fair bit of theme configuration - Fix the toctree declarations in index.rst - Move stuff around as Furo isn't 100% compatible with Alabaster Furo was chosen as it provides excellent mobile support, user controllable light/dark theming, and is overall easier to read
Configuration menu - View commit details
-
Copy full SHA for d24bc43 - Browse repository at this point
Copy the full SHA d24bc43View commit details
Commits on Jan 22, 2022
-
Allow setting custom cache directory on all platforms (psf#2739)
Fixes psf#2506 ``XDG_CACHE_HOME`` does not work on Windows. To allow for users to set a custom cache directory on all systems I added a new environment variable ``BLACK_CACHE_DIR`` to set the cache directory. The default remains the same so users will only notice a change if that environment variable is set. The specific use case I have for this is I need to run black on in different processes at the same time. There is a race condition with the cache pickle file that made this rather difficult. A custom cache directory will remove the race condition. I created ``get_cache_dir`` function in order to test the logic. This is only used to set the ``CACHE_DIR`` constant.
Configuration menu - View commit details
-
Copy full SHA for 10677ba - Browse repository at this point
Copy the full SHA 10677baView commit details -
Configuration menu - View commit details
-
Copy full SHA for fb1d1b2 - Browse repository at this point
Copy the full SHA fb1d1b2View commit details -
Refactor logic for stub empty lines (psf#2796)
This PR is intended to have no change to semantics. This is in preparation for psf#2784 which will likely introduce more logic that depends on `current_line.depth`. Inlining the subtraction gets rid of offsetting and makes it much easier to see what the result will be.
Configuration menu - View commit details
-
Copy full SHA for 811de5f - Browse repository at this point
Copy the full SHA 811de5fView commit details -
Mention "skip news" label in CHANGELOG action (psf#2797)
Co-authored-by: hauntsaninja <>
Configuration menu - View commit details
-
Copy full SHA for b3b341b - Browse repository at this point
Copy the full SHA b3b341bView commit details -
Enable pattern matching by default (psf#2758)
Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 022f896 - Browse repository at this point
Copy the full SHA 022f896View commit details
Commits on Jan 23, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 6e3677f - Browse repository at this point
Copy the full SHA 6e3677fView commit details -
Remove Beta mentions in README + Docs (psf#2801)
- State we're now stable and that we'll uphold our formatting changes as per policy - Link to The Black Style doc. Co-authored-by: Jelle Zijlstra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d2c938e - Browse repository at this point
Copy the full SHA d2c938eView commit details -
Use
magic_trailing_comma
andpreview
forFileMode
infuzz
(ps……f#2802) Co-authored-by: Jelle Zijlstra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3905173 - Browse repository at this point
Copy the full SHA 3905173View commit details
Commits on Jan 24, 2022
-
Make SRC or code mandatory and mutually exclusive (psf#2360) (psf#2804)
Closes psf#2360: I'd like to make passing SRC or `--code` mandatory and the arguments mutually exclusive. This will change our (partially already broken) promises of CLI behavior, but I'll comment below.
Configuration menu - View commit details
-
Copy full SHA for 73cb6e7 - Browse repository at this point
Copy the full SHA 73cb6e7View commit details
Commits on Jan 25, 2022
-
Hug power operators if its operands are "simple" (psf#2726)
Since power operators almost always have the highest binding power in expressions, it's often more readable to hug it with its operands. The main exception to this is when its operands are non-trivial in which case the power operator will not hug, the rule for this is the following: > For power ops, an operand is considered "simple" if it's only a NAME, numeric CONSTANT, or attribute access (chained attribute access is allowed), with or without a preceding unary operator. Fixes psfGH-538. Closes psfGH-2095. diff-shades results: https://gist.github.com/ichard26/ca6c6ad4bd1de5152d95418c8645354b Co-authored-by: Diego <[email protected]> Co-authored-by: Felix Hildén <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6417c99 - Browse repository at this point
Copy the full SHA 6417c99View commit details -
properly run ourselves twice (psf#2807)
The previous run-twice logic only affected the stability checks but not the output. Now, we actually output the twice-formatted code.
Configuration menu - View commit details
-
Copy full SHA for 32dd9ec - Browse repository at this point
Copy the full SHA 32dd9ecView commit details
Commits on Jan 27, 2022
-
Fix crash on some power hugging cases (psf#2806)
Found by the fuzzer. Repro case: python -m black -c 'importA;()<<0**0#'
Configuration menu - View commit details
-
Copy full SHA for 889a8d5 - Browse repository at this point
Copy the full SHA 889a8d5View commit details -
black-primer: stop running it (psf#2809)
At the moment, it's just a source of spurious CI failures and busywork updating the configuration file. Unlike diff-shades, it is run across many different platforms and Python versions, but that doesn't seem essential. We already run unit tests across platforms and versions. I chose to leave the code around for now in case somebody is using it, but CI will no longer run it.
Configuration menu - View commit details
-
Copy full SHA for b517dfb - Browse repository at this point
Copy the full SHA b517dfbView commit details -
Configuration menu - View commit details
-
Copy full SHA for b92822a - Browse repository at this point
Copy the full SHA b92822aView commit details
Commits on Jan 28, 2022
-
Use parentheses on method access on float and int literals (psf#2799)
Co-authored-by: Jelle Zijlstra <[email protected]> Co-authored-by: Felix Hildén <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 777cae5 - Browse repository at this point
Copy the full SHA 777cae5View commit details -
Configuration menu - View commit details
-
Copy full SHA for fda2561 - Browse repository at this point
Copy the full SHA fda2561View commit details -
reorganize release notes for 22.1.0 (psf#2790)
Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5f01b87 - Browse repository at this point
Copy the full SHA 5f01b87View commit details -
Configuration menu - View commit details
-
Copy full SHA for e150676 - Browse repository at this point
Copy the full SHA e150676View commit details
Commits on Jan 29, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3437950 - Browse repository at this point
Copy the full SHA 3437950View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ce049d - Browse repository at this point
Copy the full SHA 4ce049dView commit details -
Formalise style preference description (psf#2818)
Closes psf#1256: I reworded our style docs to be more explicit about the style we're aiming for and how it is changed (or isn't).
Configuration menu - View commit details
-
Copy full SHA for df0aeee - Browse repository at this point
Copy the full SHA df0aeeeView commit details -
Fix arithmetic stability issue (psf#2817)
It turns out "simple_stmt" isn't that simple: it can contain multiple statements separated by semicolons. Invisible parenthesis logic for arithmetic expressions only looked at the first child of simple_stmt. This causes instability in the presence of semicolons, since the next run through the statement following the semicolon will be the first child of another simple_stmt. I believe this along with psf#2572 fix the known stability issues.
Configuration menu - View commit details
-
Copy full SHA for 95e77cb - Browse repository at this point
Copy the full SHA 95e77cbView commit details -
Fix instability due to trailing comma logic (psf#2572)
It was causing stability issues because the first pass could cause a "magic trailing comma" to appear, meaning that the second pass might get a different result. It's not critical. Some things format differently (with extra parens)
Configuration menu - View commit details
-
Copy full SHA for a24e1f7 - Browse repository at this point
Copy the full SHA a24e1f7View commit details -
Add a test case to torture.py (psf#2822)
Co-authored-by: hauntsaninja <>
Configuration menu - View commit details
-
Copy full SHA for a4992b4 - Browse repository at this point
Copy the full SHA a4992b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8acb854 - Browse repository at this point
Copy the full SHA 8acb854View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d768e5 - Browse repository at this point
Copy the full SHA 0d768e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5f8e8b - Browse repository at this point
Copy the full SHA c5f8e8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for dea2f94 - Browse repository at this point
Copy the full SHA dea2f94View commit details -
Configuration menu - View commit details
-
Copy full SHA for d038a24 - Browse repository at this point
Copy the full SHA d038a24View commit details
Commits on Jan 30, 2022
-
Configuration menu - View commit details
-
Copy full SHA for bbe1bdf - Browse repository at this point
Copy the full SHA bbe1bdfView commit details -
Exclude __pypackages__ by default (psfGH-2836)
PDM uses this as part of not-accepted-yet PEP 582.
Configuration menu - View commit details
-
Copy full SHA for f61299a - Browse repository at this point
Copy the full SHA f61299aView commit details -
Soft comparison of --required-version (psf#2832)
Co-authored-by: Jelle Zijlstra <[email protected]> Co-authored-by: Felix Hildén <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cae7ae3 - Browse repository at this point
Copy the full SHA cae7ae3View commit details -
release process: formalize the changelog template (psf#2837)
I did this manually for the last few releases and I think it's going to be helpful in the future too. Unfortunately this adds a little more work during the release (sorry @cooperlees). This change will also improve the merge conflict situation a bit, because changes to different sections won't merge conflict. For the last release, the sections were in a kind of random order. In the template I put highlights and "Style" first because they're most important to users, and alphabetized the rest.
Configuration menu - View commit details
-
Copy full SHA for afc0fb0 - Browse repository at this point
Copy the full SHA afc0fb0View commit details
Commits on Feb 1, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f3f3acc - Browse repository at this point
Copy the full SHA f3f3accView commit details -
Configuration menu - View commit details
-
Copy full SHA for fb9fe6b - Browse repository at this point
Copy the full SHA fb9fe6bView commit details
Commits on Feb 2, 2022
-
Update description for GitHub Action
options:
argument (psfGH-2858)It was missing --diff as one of the default arguments passed.
Configuration menu - View commit details
-
Copy full SHA for 111880e - Browse repository at this point
Copy the full SHA 111880eView commit details -
Create indentation FAQ entry (psf#2855)
Co-authored-by: Jelle Zijlstra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 31fe97e - Browse repository at this point
Copy the full SHA 31fe97eView commit details
Commits on Feb 7, 2022
-
Bump sphinx-copybutton from 0.4.0 to 0.5.0 in /docs (psf#2871)
Bumps [sphinx-copybutton](https://github.com/executablebooks/sphinx-copybutton) from 0.4.0 to 0.5.0. - [Release notes](https://github.com/executablebooks/sphinx-copybutton/releases) - [Changelog](https://github.com/executablebooks/sphinx-copybutton/blob/master/CHANGELOG.md) - [Commits](executablebooks/sphinx-copybutton@v0.4.0...v0.5.0) --- updated-dependencies: - dependency-name: sphinx-copybutton dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 01001d5 - Browse repository at this point
Copy the full SHA 01001d5View commit details
Commits on Feb 8, 2022
-
Add Django in 'used by' section in Readme (psf#2875)
* Add Django in 'used by' section in Readme * Fix Readme issue
Configuration menu - View commit details
-
Copy full SHA for 9b31717 - Browse repository at this point
Copy the full SHA 9b31717View commit details -
Configuration menu - View commit details
-
Copy full SHA for b4a6bb0 - Browse repository at this point
Copy the full SHA b4a6bb0View commit details
Commits on Feb 11, 2022
-
Order the disabled error codes for pylint (psfGH-2870)
Just make them alphabetical.
Configuration menu - View commit details
-
Copy full SHA for 862c6f2 - Browse repository at this point
Copy the full SHA 862c6f2View commit details -
Fix typo in file_collection_and_discovery.md (psfGH-2860)
"you your" -> "your" Co-authored-by: Felix Hildén <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 07a2e6f - Browse repository at this point
Copy the full SHA 07a2e6fView commit details
Commits on Feb 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 50a8569 - Browse repository at this point
Copy the full SHA 50a8569View commit details -
correct Vim integration code (psf#2853)
- use `Black` directly: the commands an autocommand runs are Ex commands, so no execute or colon is necessary. - use an `augroup` (best practice) to prevent duplicate autocommands from hindering performance.
Configuration menu - View commit details
-
Copy full SHA for 8089aaa - Browse repository at this point
Copy the full SHA 8089aaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for c26c772 - Browse repository at this point
Copy the full SHA c26c772View commit details
Commits on Feb 23, 2022
-
Bump furo from 2022.1.2 to 2022.2.14.1 in /docs (psfGH-2892)
Bumps [furo](https://github.com/pradyunsg/furo) from 2022.1.2 to 2022.2.14.1. - [Release notes](https://github.com/pradyunsg/furo/releases) - [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md) - [Commits](pradyunsg/furo@2022.01.02...2022.02.14.1) --- updated-dependencies: - dependency-name: furo dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 7e2b2d4 - Browse repository at this point
Copy the full SHA 7e2b2d4View commit details
Commits on Feb 24, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 2918ea3 - Browse repository at this point
Copy the full SHA 2918ea3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6cfb518 - Browse repository at this point
Copy the full SHA 6cfb518View commit details -
fix new formatting issue (psf#2895)
Race between psf#2889 and another PR.
Configuration menu - View commit details
-
Copy full SHA for 9b16107 - Browse repository at this point
Copy the full SHA 9b16107View commit details
Commits on Mar 1, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 1475264 - Browse repository at this point
Copy the full SHA 1475264View commit details
Commits on Mar 3, 2022
-
replace md5 with sha256 (psf#2905)
MD5 is unavailable on systems with active FIPS mode. That makes black crash when run on such systems.
Configuration menu - View commit details
-
Copy full SHA for 67eaf24 - Browse repository at this point
Copy the full SHA 67eaf24View commit details
Commits on Mar 5, 2022
-
Move test for g:load_black to improve plugin performance (psfGH-2896)
If a vim/neovim user wishes to suppress loading the vim plugin by setting g:load_black in their VIMRC (for me, Arch linux automatically adds the plugin to Neovim's RTP, even though I'm not using it), the current location of the test comes after a call to has('python3'). This adds, in my tests, between 35 and 45 ms to Vim load time (which I know isn't a lot but it's also unnecessary). Moving the call to `exists('g:load_black')` to before the call to `has('python3')` removes this unnecessary test and speeds up loading. Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7af3abd - Browse repository at this point
Copy the full SHA 7af3abdView commit details -
Bump furo from 2022.2.14.1 to 2022.3.4 in /docs (psf#2906)
Bumps [furo](https://github.com/pradyunsg/furo) from 2022.2.14.1 to 2022.3.4. - [Release notes](https://github.com/pradyunsg/furo/releases) - [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md) - [Commits](pradyunsg/furo@2022.02.14.1...2022.03.04) --- updated-dependencies: - dependency-name: furo dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for eb21315 - Browse repository at this point
Copy the full SHA eb21315View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f4976a - Browse repository at this point
Copy the full SHA 6f4976aView commit details
Commits on Mar 7, 2022
-
Bump actions/checkout from 2 to 3 (psf#2909)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for dab1be3 - Browse repository at this point
Copy the full SHA dab1be3View commit details -
Bump actions/setup-python from 2 to 3 (psf#2908)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 3. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v2...v3) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Cooper Lees <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fd6e92a - Browse repository at this point
Copy the full SHA fd6e92aView commit details
Commits on Mar 8, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 24ffc54 - Browse repository at this point
Copy the full SHA 24ffc54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 71e71e5 - Browse repository at this point
Copy the full SHA 71e71e5View commit details
Commits on Mar 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 9ce3c80 - Browse repository at this point
Copy the full SHA 9ce3c80View commit details
Commits on Mar 15, 2022
-
Farewell black-primer, it was nice knowing you (psf#2924)
Enjoy your retirement at https://github.com/cooperlees/black-primer
Configuration menu - View commit details
-
Copy full SHA for a57ab32 - Browse repository at this point
Copy the full SHA a57ab32View commit details
Commits on Mar 16, 2022
-
Remove power hugging formatting from preview (psf#2928)
It is falsely placed in preview features and always formats the power operators, it was added in psf#2789 but there is no check for formatting added along with it.
Configuration menu - View commit details
-
Copy full SHA for 086ae68 - Browse repository at this point
Copy the full SHA 086ae68View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa7f015 - Browse repository at this point
Copy the full SHA fa7f015View commit details
Commits on Mar 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f87df0e - Browse repository at this point
Copy the full SHA f87df0eView commit details -
stub style: remove some possible future changes (psf#2940)
Fixes psf#2938. All of these suggested future changes are out of scope for an autoformatter and should be handled by a linter instead.
Configuration menu - View commit details
-
Copy full SHA for 5379d4f - Browse repository at this point
Copy the full SHA 5379d4fView commit details
Commits on Mar 23, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 062b549 - Browse repository at this point
Copy the full SHA 062b549View commit details
Commits on Mar 24, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3800ebd - Browse repository at this point
Copy the full SHA 3800ebdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 14e5ce5 - Browse repository at this point
Copy the full SHA 14e5ce5View commit details -
Resolve new flake8-bugbear errors (B020) (psfGH-2950)
Fixes a couple places where we were using the same variable name as we are iterating over. Co-authored-by: Jelle Zijlstra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 14d84ba - Browse repository at this point
Copy the full SHA 14d84baView commit details
Commits on Mar 26, 2022
-
Remove unnecessary parentheses from
except
clauses (psf#2939)Co-authored-by: Jelle Zijlstra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bd1e980 - Browse repository at this point
Copy the full SHA bd1e980View commit details -
Enforce no formatting changes for PRs via CI (psfGH-2951)
Now PRs will run two diff-shades jobs, "preview-changes" which formats all projects with preview=True, and "assert-no-changes" which formats all projects with preview=False. The latter also fails if any changes were made. Pushes to main will only run "preview-changes" Also the workflow_dispatch feature was dropped since it was complicating everything for little gain.
Configuration menu - View commit details
-
Copy full SHA for f239d22 - Browse repository at this point
Copy the full SHA f239d22View commit details
Commits on Mar 28, 2022
-
Bump sphinx from 4.4.0 to 4.5.0 in /docs (psfGH-2959)
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 4.4.0 to 4.5.0. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES) - [Commits](sphinx-doc/sphinx@v4.4.0...v4.5.0) --- updated-dependencies: - dependency-name: sphinx dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for ac7402c - Browse repository at this point
Copy the full SHA ac7402cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e9681a4 - Browse repository at this point
Copy the full SHA e9681a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae2c075 - Browse repository at this point
Copy the full SHA ae2c075View commit details
Commits on Mar 29, 2022
-
Bump actions/cache from 2.1.7 to 3 (psfGH-2962)
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.7 to 3. - [Release notes](https://github.com/actions/cache/releases) - [Commits](actions/cache@v2.1.7...v3) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 2d62a09 - Browse repository at this point
Copy the full SHA 2d62a09View commit details
Commits on Mar 30, 2022
-
Keep tests working w/ upcoming aiohttp 4.0.0 (psf#2974)
aiohttp.test_utils.unittest_run_loop was deprecated since aiohttp 3.8 and aiohttp 4 (which isn't a thing quite yet) removes it. To maintain compatibility with the full range of versions we declare to support, test_blackd.py will now define a no-op replacement if it can't be imported. Also, mypy is painfully slow to use without a cache, let's reenable it.
Configuration menu - View commit details
-
Copy full SHA for 82e150a - Browse repository at this point
Copy the full SHA 82e150aView commit details -
Convert
index.rst
andlicense.rst
to markdown (psf#2852)Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3dea6e3 - Browse repository at this point
Copy the full SHA 3dea6e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for a66016c - Browse repository at this point
Copy the full SHA a66016cView commit details -
Remove click pin in diff-shades workflow (psf#2979)
Click 8.1.1 was released with a fix for pallets/click#2227.
Configuration menu - View commit details
-
Copy full SHA for def0483 - Browse repository at this point
Copy the full SHA def0483View commit details
Commits on Apr 2, 2022
-
Bump peter-evans/find-comment from 1.3.0 to 2 (psf#2960)
Bumps [peter-evans/find-comment](https://github.com/peter-evans/find-comment) from 1.3.0 to 2. - [Release notes](https://github.com/peter-evans/find-comment/releases) - [Commits](peter-evans/find-comment@d2dae40...1769778) --- updated-dependencies: - dependency-name: peter-evans/find-comment dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 3451502 - Browse repository at this point
Copy the full SHA 3451502View commit details -
Bump peter-evans/create-or-update-comment from 1.4.5 to 2 (psf#2961)
Bumps [peter-evans/create-or-update-comment](https://github.com/peter-evans/create-or-update-comment) from 1.4.5 to 2. - [Release notes](https://github.com/peter-evans/create-or-update-comment/releases) - [Commits](peter-evans/create-or-update-comment@a35cf36...c9fcb64) --- updated-dependencies: - dependency-name: peter-evans/create-or-update-comment dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 5436810 - Browse repository at this point
Copy the full SHA 5436810View commit details -
try-except tomllib import (psf#2987)
See psf#2965 I left the version check in place because mypy doesn't generally like try-excepted imports.
Configuration menu - View commit details
-
Copy full SHA for 1af29fb - Browse repository at this point
Copy the full SHA 1af29fbView commit details -
Fix broken link in README.md (psf#2989)
Broken when we converted some more RST docs to MyST
Configuration menu - View commit details
-
Copy full SHA for 4d0a4b1 - Browse repository at this point
Copy the full SHA 4d0a4b1View commit details
Commits on Apr 3, 2022
-
Remove unnecessary parentheses from
with
statements (psf#2926)Co-authored-by: Jelle Zijlstra <[email protected]> Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 24c708e - Browse repository at this point
Copy the full SHA 24c708eView commit details
Commits on Apr 5, 2022
-
Update test_black.shhh_click test for click 8+ (psf#2993)
The 8.0.x series renamed its "die on LANG=C" function and the 8.1.x series straight up deleted it. Unfortunately this makes this test type check cleanly hard, so we'll just lint with click 8.1+ (the pre-commit hook configuration was changed mostly to just evict any now unsupported mypy environments)
Configuration menu - View commit details
-
Copy full SHA for fa5fd26 - Browse repository at this point
Copy the full SHA fa5fd26View commit details -
Update FAQ: Mention formatting of custom jupyter cell magic (psf#2982)
Co-authored-by: Jelle Zijlstra <[email protected]> Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 421383d - Browse repository at this point
Copy the full SHA 421383dView commit details
Commits on Apr 6, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 9b30740 - Browse repository at this point
Copy the full SHA 9b30740View commit details -
Output python version and implementation as part of
--version
flag (p……sf#2997) Example: black, 22.1.1.dev56+g421383d.d20220405 (compiled: no) Python (CPython) 3.9.12 Co-authored-by: Batuhan Taskaya <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f6188ce - Browse repository at this point
Copy the full SHA f6188ceView commit details
Commits on Apr 9, 2022
-
Better manage return annotation brackets (psf#2990)
Allows us to better control placement of return annotations by: a) removing redundant parens b) moves very long type annotations onto their own line Co-authored-by: Jelle Zijlstra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 98fccce - Browse repository at this point
Copy the full SHA 98fccceView commit details -
Remove redundant parentheses around awaited coroutines/tasks (psf#2991)
This is a tricky one as await is technically an expression and therefore in certain situations requires brackets for operator precedence. However, the vast majority of await usage is just await some_coroutine(...) and similar in format to return statements. Therefore this PR removes redundant parens around these await expressions. Co-authored-by: Jelle Zijlstra <[email protected]> Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 75f99bd - Browse repository at this point
Copy the full SHA 75f99bdView commit details -
Correctly handle fmt: skip comments without internal spaces (psf#2970)
Co-authored-by: Jelle Zijlstra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 431bd09 - Browse repository at this point
Copy the full SHA 431bd09View commit details
Commits on Apr 10, 2022
-
Explain our use of mypyc in the FAQ (psf#3002)
I realized we don't have a FAQ entry about this, let's change that so compiled: yes/no doesn't surprise as many people :) Co-authored-by: Jelle Zijlstra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 497a725 - Browse repository at this point
Copy the full SHA 497a725View commit details
Commits on Apr 11, 2022
-
Bump actions/upload-artifact from 2 to 3 (psf#3004)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v2...v3) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for abdc31c - Browse repository at this point
Copy the full SHA abdc31cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 40053b5 - Browse repository at this point
Copy the full SHA 40053b5View commit details -
Bump furo from 2022.3.4 to 2022.4.7 in /docs (psf#3003)
Bumps [furo](https://github.com/pradyunsg/furo) from 2022.3.4 to 2022.4.7. - [Release notes](https://github.com/pradyunsg/furo/releases) - [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md) - [Commits](pradyunsg/furo@2022.03.04...2022.04.07) --- updated-dependencies: - dependency-name: furo dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 911b59f - Browse repository at this point
Copy the full SHA 911b59fView commit details -
Quote black[jupyter] and black[d] in installation docs (psf#3006)
We just got someone on Discord who was confused because the command as written caused their shell to try to do command expansion. Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 96bd428 - Browse repository at this point
Copy the full SHA 96bd428View commit details
Commits on Apr 13, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 712f8b3 - Browse repository at this point
Copy the full SHA 712f8b3View commit details
Commits on Apr 15, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 7f7673d - Browse repository at this point
Copy the full SHA 7f7673dView commit details
Commits on Apr 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 8ed3e3d - Browse repository at this point
Copy the full SHA 8ed3e3dView commit details
Commits on Apr 28, 2022
-
Fix strtobool function (psf#3025)
* Fix strtobool function for vim plugin * Update CHANGES.md Co-authored-by: Cooper Lees <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c6800e0 - Browse repository at this point
Copy the full SHA c6800e0View commit details -
Stop pinning lark-parser (psf#3041)
- Latest version works more Test: `tox -e fuzz`
Configuration menu - View commit details
-
Copy full SHA for fb8dfde - Browse repository at this point
Copy the full SHA fb8dfdeView commit details
Commits on May 2, 2022
-
Bump myst-parser from 0.16.1 to 0.17.2 in /docs (psf#3019)
Bumps [myst-parser](https://github.com/executablebooks/MyST-Parser) from 0.16.1 to 0.17.2. - [Release notes](https://github.com/executablebooks/MyST-Parser/releases) - [Changelog](https://github.com/executablebooks/MyST-Parser/blob/master/CHANGELOG.md) - [Commits](executablebooks/MyST-Parser@v0.16.1...v0.17.2) --- updated-dependencies: - dependency-name: myst-parser dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 9d5edd3 - Browse repository at this point
Copy the full SHA 9d5edd3View commit details
Commits on May 3, 2022
-
chore: Set permissions for GitHub actions (psf#3043)
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much. - Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs [Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/) Signed-off-by: naveen <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c940f75 - Browse repository at this point
Copy the full SHA c940f75View commit details
Commits on May 6, 2022
-
Move imports of
ThreadPoolExecutor
intoreformat_many()
, allowing…… Black-in-the-browser (psf#3046) This is a slight perf win for use-cases that don't invoke `reformat_many()`, but more importantly to me today it means I can use Black in pyscript.
Configuration menu - View commit details
-
Copy full SHA for 9ce100b - Browse repository at this point
Copy the full SHA 9ce100bView commit details
Commits on May 8, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 62c2b16 - Browse repository at this point
Copy the full SHA 62c2b16View commit details -
Put closing quote on a separate line if docstring is too long (psf#3044)
Fixes psf#1632 Co-authored-by: Felix Hildén <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 20d8ccb - Browse repository at this point
Copy the full SHA 20d8ccbView commit details -
Read simple data cases automatically (psf#3034)
Co-authored-by: Felix Hildén <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fc2a164 - Browse repository at this point
Copy the full SHA fc2a164View commit details
Commits on May 10, 2022
-
Bump docker/setup-qemu-action from 1 to 2 (psf#3056)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 1 to 2. - [Release notes](https://github.com/docker/setup-qemu-action/releases) - [Commits](docker/setup-qemu-action@v1...v2) --- updated-dependencies: - dependency-name: docker/setup-qemu-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 5d5b731 - Browse repository at this point
Copy the full SHA 5d5b731View commit details -
Bump docker/build-push-action from 2 to 3 (psf#3057)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 2 to 3. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](docker/build-push-action@v2...v3) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for ba21a85 - Browse repository at this point
Copy the full SHA ba21a85View commit details -
Bump docker/login-action from 1 to 2 (psf#3059)
Bumps [docker/login-action](https://github.com/docker/login-action) from 1 to 2. - [Release notes](https://github.com/docker/login-action/releases) - [Commits](docker/login-action@v1...v2) --- updated-dependencies: - dependency-name: docker/login-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 4af87d8 - Browse repository at this point
Copy the full SHA 4af87d8View commit details -
Bump docker/setup-buildx-action from 1 to 2 (psf#3058)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 1 to 2. - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](docker/setup-buildx-action@v1...v2) --- updated-dependencies: - dependency-name: docker/setup-buildx-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 7f03313 - Browse repository at this point
Copy the full SHA 7f03313View commit details
Commits on May 18, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 2893c42 - Browse repository at this point
Copy the full SHA 2893c42View commit details
Commits on May 21, 2022
-
Document new Microsoft Black Formatter extension for VSCode (psf#3063)
Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fdb01f8 - Browse repository at this point
Copy the full SHA fdb01f8View commit details
Commits on May 26, 2022
-
Add more examples to exclude files in addition to the defaults (psf#3070
) Co-authored-by: Jelle Zijlstra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9fe788d - Browse repository at this point
Copy the full SHA 9fe788dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e55718 - Browse repository at this point
Copy the full SHA 1e55718View commit details
Commits on Jun 1, 2022
-
Add script to ease migration to black (psf#3038)
* Add script to ease migration to black * Update CHANGES.md Co-authored-by: Cooper Lees <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 436e12f - Browse repository at this point
Copy the full SHA 436e12fView commit details
Commits on Jun 3, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f51e537 - Browse repository at this point
Copy the full SHA f51e537View commit details
Commits on Jun 11, 2022
-
Bump pre-commit/action from 2.0.3 to 3.0.0 (psf#3108)
Bumps [pre-commit/action](https://github.com/pre-commit/action) from 2.0.3 to 3.0.0. - [Release notes](https://github.com/pre-commit/action/releases) - [Commits](pre-commit/action@v2.0.3...v3.0.0) --- updated-dependencies: - dependency-name: pre-commit/action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 6d32ab0 - Browse repository at this point
Copy the full SHA 6d32ab0View commit details -
Remove newline after code block open (psf#3035)
Co-authored-by: Jelle Zijlstra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4bb7bf2 - Browse repository at this point
Copy the full SHA 4bb7bf2View commit details -
Update documentation dependencies (psf#3118)
Furo, myst-parser, and Sphinx (had to pin docutils due to sphinx breakage)
Configuration menu - View commit details
-
Copy full SHA for 8c8675c - Browse repository at this point
Copy the full SHA 8c8675cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 162ecd1 - Browse repository at this point
Copy the full SHA 162ecd1View commit details
Commits on Jun 13, 2022
-
Bump actions/setup-python from 3 to 4 (psf#3121)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 4. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v3...v4) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 799adb5 - Browse repository at this point
Copy the full SHA 799adb5View commit details
Commits on Jun 14, 2022
-
Test run black on self (psf#3114)
* Add run_self environment in tox * Add run_self task as part of the lint CI flow * Remove hard coded sources list * Remove black from pre-commit Co-authored-by: Cooper Lees <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6c1bd08 - Browse repository at this point
Copy the full SHA 6c1bd08View commit details
Commits on Jun 17, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e3c9b04 - Browse repository at this point
Copy the full SHA e3c9b04View commit details
Commits on Jun 20, 2022
-
Bump sphinx from 5.0.1 to 5.0.2 in /docs (psf#3128)
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 5.0.1 to 5.0.2. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/5.x/CHANGES) - [Commits](sphinx-doc/sphinx@v5.0.1...v5.0.2) --- updated-dependencies: - dependency-name: sphinx dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 6463fb8 - Browse repository at this point
Copy the full SHA 6463fb8View commit details
Commits on Jun 23, 2022
-
Configuration menu - View commit details
-
Copy full SHA for fa6caa6 - Browse repository at this point
Copy the full SHA fa6caa6View commit details
Commits on Jun 27, 2022
-
Bump furo from 2022.6.4.1 to 2022.6.21 in /docs (psf#3138)
Bumps [furo](https://github.com/pradyunsg/furo) from 2022.6.4.1 to 2022.6.21. - [Release notes](https://github.com/pradyunsg/furo/releases) - [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md) - [Commits](pradyunsg/furo@2022.06.04.1...2022.06.21) --- updated-dependencies: - dependency-name: furo dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for d848209 - Browse repository at this point
Copy the full SHA d848209View commit details -
Update preview style docs to include recent changes (psf#3136)
Covers psfGH-2926, psfGH-2990, psfGH-2991, and psfGH-3035. Co-authored-by: Jelle Zijlstra <[email protected]> Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for eb5d175 - Browse repository at this point
Copy the full SHA eb5d175View commit details
Commits on Jun 28, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f6c139c - Browse repository at this point
Copy the full SHA f6c139cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6debce6 - Browse repository at this point
Copy the full SHA 6debce6View commit details
Commits on Jul 3, 2022
-
Use RTD's new build process and config (psf#3149)
See the deprecation notice: https://docs.readthedocs.io/en/stable/config-file/v2.html#python-version
Configuration menu - View commit details
-
Copy full SHA for b859a37 - Browse repository at this point
Copy the full SHA b859a37View commit details
Commits on Jul 6, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 7af77d1 - Browse repository at this point
Copy the full SHA 7af77d1View commit details
Commits on Jul 11, 2022
-
Recommend using BlackConnect in IntelliJ IDEs (psf#3150)
* Recommend using BlackConnect in IntelliJ IDEs * IntelliJ IDEs integration docs: improve formatting * Add changelog for recommending BlackConnect * IntelliJ IDEs integration docs: improve formatting * Apply suggestions from code review Co-authored-by: Richard Si <[email protected]> * Fix indentation * Apply italic to Black name Consequently with other places in the document * Move CHANGELOG entry to Unreleased section * IntelliJ IDEs integration docs: bring back a point with formatting a file * IntelliJ IDEs integration docs: fix extra whitespace and linebreak Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 05b63c4 - Browse repository at this point
Copy the full SHA 05b63c4View commit details
Commits on Jul 14, 2022
-
Copy over comments when hugging power ops (psf#2874)
Otherwise they'd be deleted which was a regression in 22.1.0 (oops! my bad!). Also type comments are now tracked in the AST safety check on all compatible platforms to error out if this happens again. Overall the line rewriting code has been rewritten to do "the right thing (tm)", I hope this fixes other potential bugs in the code (fwiw I got to drop the bugfix in blib2to3.pytree.Leaf.clone since now bracket metadata is properly copied over). Fixes psf#2873
Configuration menu - View commit details
-
Copy full SHA for 18c17be - Browse repository at this point
Copy the full SHA 18c17beView commit details -
Don't (ever) put a single-char closing docstring quote on a new line (p…
…sf#3166) Doing so is invalid. Note this only fixes the preview style since the logic putting closing docstring quotes on their own line if they violate the line length limit is quite new. Co-authored-by: Jelle Zijlstra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4f0532d - Browse repository at this point
Copy the full SHA 4f0532dView commit details -
Add warning to not run blackd publicly in docs (psf#3167)
Co-authored-by: Jelle Zijlstra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8900e3a - Browse repository at this point
Copy the full SHA 8900e3aView commit details -
Move to explicitly creating a new loop (psf#3164)
* Move to explicitly creating a new loop - >= 3.10 add a warning that `get_event_loop` will not automatically create a loop - Move to explicit API Test: - `python3.11 -m venv --upgrade-deps /tmp/tb` - `/tmp/tb/bin/pip install -e .` - Install deps and no blackd as aiohttp + yarl can't build still with 3.11 - aio-libs/aiohttp#6600 - `export PYTHONWARNINGS=error` ``` cooper@l33t:~/repos/black$ /tmp/tb/bin/black . All done! ✨ 🍰 ✨ 44 files left unchanged. ``` Fixes psf#3110 * Add to CHANGES.md * Fix a cooper typo yet again * Set default asyncio loop to our explicitly created one + unset on exit * Update CHANGES.md Fix my silly typo. Co-authored-by: Thomas Grainger <[email protected]> Co-authored-by: Cooper Ry Lees <[email protected]> Co-authored-by: Thomas Grainger <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9aa33f4 - Browse repository at this point
Copy the full SHA 9aa33f4View commit details -
Actually disable docstring prefix normalization with -S + fix instabi…
…lity (psf#3168) The former was a regression I introduced a long time ago. To avoid changing the stable style too much, the regression is only fixed if --preview is enabled Annoyingly enough, as we currently always enforce a second format pass if changes were made, there's no good way to prove the existence of the docstring quote normalization instability issue. For posterity, here's one failing example: --- source +++ first pass @@ -1,7 +1,7 @@ def some_function(self): - ''''<text here> + """ '<text here> <text here, since without another non-empty line black is stable> - ''' + """ pass --- first pass +++ second pass @@ -1,7 +1,7 @@ def some_function(self): - """ '<text here> + """'<text here> <text here, since without another non-empty line black is stable> """ pass Co-authored-by: Jelle Zijlstra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ad5c315 - Browse repository at this point
Copy the full SHA ad5c315View commit details -
Fix typo in config docs for --extend-exclude (psf#3170)
The old regex in the example was invalid and caused an error on startup.
Configuration menu - View commit details
-
Copy full SHA for b0eed7c - Browse repository at this point
Copy the full SHA b0eed7cView commit details
Commits on Jul 16, 2022
-
configure strict pytest and filterwarnings=['error', ... (psf#3173)
* configure strict pytest * ignore current warnings
Configuration menu - View commit details
-
Copy full SHA for df5a87d - Browse repository at this point
Copy the full SHA df5a87dView commit details
Commits on Jul 17, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 33f0d9e - Browse repository at this point
Copy the full SHA 33f0d9eView commit details
Commits on Jul 19, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 1b6de7b - Browse repository at this point
Copy the full SHA 1b6de7bView commit details -
Fix the handling of
# fmt: skip
when it's at a colon line (psf#3148)When the Leaf node with `# fmt: skip` is a NEWLINE inside a `suite` Node, the nodes to ignore should be from the siblings of the parent `suite` Node. There is a also a special case for the ASYNC token, where it expands to the grandparent Node where the ASYNC token is. This fixes psfGH-2646, psfGH-3126, psfGH-2680, psfGH-2421, psfGH-2339, and psfGH-2138.
Configuration menu - View commit details
-
Copy full SHA for 6ea4edd - Browse repository at this point
Copy the full SHA 6ea4eddView commit details
Commits on Jul 20, 2022
-
Fix an infinite loop when using
# fmt: on/off
... (psf#3158)... in the middle of an expression or code block by adding a missing return. Co-authored-by: Richard Si <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 249c653 - Browse repository at this point
Copy the full SHA 249c653View commit details -
Use underscores instead of a space in a test file's name (psf#3180)
... for *consistency*
Configuration menu - View commit details
-
Copy full SHA for b4dc40b - Browse repository at this point
Copy the full SHA b4dc40bView commit details
Commits on Jul 27, 2022
-
Bump sphinx from 5.0.2 to 5.1.0 in /docs (psf#3183)
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 5.0.2 to 5.1.0. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/5.x/CHANGES) - [Commits](sphinx-doc/sphinx@v5.0.2...v5.1.0) --- updated-dependencies: - dependency-name: sphinx dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for e9e756d - Browse repository at this point
Copy the full SHA e9e756dView commit details -
Add isort to linting toolchain
Co-authored-by: Shivansh-007 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e0a780a - Browse repository at this point
Copy the full SHA e0a780aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 44d5da0 - Browse repository at this point
Copy the full SHA 44d5da0View commit details
Commits on Jul 28, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 411ed77 - Browse repository at this point
Copy the full SHA 411ed77View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef8deb6 - Browse repository at this point
Copy the full SHA ef8deb6View commit details -
Vim plugin: prefix messages with "Black: " (psf#3194)
As mentioned in psfGH-3185, when using Black as a Vim plugin, especially automatically on save, the plugin's messages can be confusing, as nothing indicates that they come from Black.
Configuration menu - View commit details
-
Copy full SHA for 4f1772e - Browse repository at this point
Copy the full SHA 4f1772eView commit details
Commits on Jul 30, 2022
-
Remove blib2to3 grammar cache logging (psf#3193)
As error logs are emitted often (they happen when Black's cache directory is created after blib2to3 tries to write its cache) and cause issues to be filed by users who think Black isn't working correctly. These errors are expected for now and aren't a cause for concern so let's remove them to stop worrying users (and new issues from being opened). We can improve the blib2to3 caching mechanism to write its cache at the end of a successful command line invocation later.
Configuration menu - View commit details
-
Copy full SHA for d85cf00 - Browse repository at this point
Copy the full SHA d85cf00View commit details -
Add sanity check to executable CD + more (psf#3190)
Building executables without any testing is quite sketchy, let's at least verify they won't crash on startup and format Black's own codebase. Also replaced "binaries" with "executables" since it's clearer and won't be confused with mypyc. Finally, I added colorama so all Windows users can get colour.
Configuration menu - View commit details
-
Copy full SHA for eaa0489 - Browse repository at this point
Copy the full SHA eaa0489View commit details
Commits on Jul 31, 2022
-
Configuration menu - View commit details
-
Copy full SHA for ca0dbb8 - Browse repository at this point
Copy the full SHA ca0dbb8View commit details
Commits on Aug 1, 2022
-
Bump sphinx from 5.1.0 to 5.1.1 in /docs (psf#3201)
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 5.1.0 to 5.1.1. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/5.x/CHANGES) - [Commits](sphinx-doc/sphinx@v5.1.0...v5.1.1) --- updated-dependencies: - dependency-name: sphinx dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for b776bf9 - Browse repository at this point
Copy the full SHA b776bf9View commit details
Commits on Aug 2, 2022
-
makes install available for all users in docker image (psf#3202)
* makes install available for all users in docker image moves the installation path from /root/.local to a virtualenv. this way we still get the lightweight multistage build without excluding non-root users. * adds changelog entry for docker-image fix A changelog entry has been added under the Integration subheader * changes dockerfile to use the venv activate script we are now using the inbuilt venv activate script, as well as explicitly mentioning the binary location in the entrypoint cmd. Co-authored-by: Nicolò <[email protected]> Co-authored-by: Cooper Lees <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f066e3f - Browse repository at this point
Copy the full SHA f066e3fView commit details -
Remove invalid syntax in docstrings -S --preview test (psf#3205)
uR is not a legal string prefix, so this test breaks (AssertionError: cannot use --safe with this file; failed to parse source file AST: invalid syntax) if changed to one in which the file is changed. I've changed the last test to have u alone, and added an R to the test above instead.
Configuration menu - View commit details
-
Copy full SHA for 507234c - Browse repository at this point
Copy the full SHA 507234cView commit details
Commits on Aug 10, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 6064a43 - Browse repository at this point
Copy the full SHA 6064a43View commit details
Commits on Aug 13, 2022
-
Use --no-implicit-optional for type checking (psf#3220)
This makes type checking PEP 484 compliant (as of 2018). mypy will change its defaults soon. See: python/mypy#9091 python/mypy#13401
Configuration menu - View commit details
-
Copy full SHA for 680cbe3 - Browse repository at this point
Copy the full SHA 680cbe3View commit details -
add preview option support for blackd (psf#3217)
Fixes psf#3195 Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 07b68e2 - Browse repository at this point
Copy the full SHA 07b68e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for e7b9671 - Browse repository at this point
Copy the full SHA e7b9671View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ebf14d - Browse repository at this point
Copy the full SHA 4ebf14dView commit details
Commits on Aug 20, 2022
-
This file gets scraped a lot, so create a distinct email for potential spam.
Configuration menu - View commit details
-
Copy full SHA for 6e0ad52 - Browse repository at this point
Copy the full SHA 6e0ad52View commit details
Commits on Aug 23, 2022
-
Add passing 3.11 CI by exempting blackd tests (psf#3234)
- Had to exempt blackd tests for now due to aiohttp - Skip by using `sys.version_info` tuple - aiohttp does not compile in 3.11 yet - refer to psf#3230 - Add a deadsnakes ubuntu workflow to run 3.11-dev to ensure we don't regress - Have it also format ourselves Test: - `tox -e 311` Co-authored-by: Cooper Ry Lees <[email protected]> Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 59acf8a - Browse repository at this point
Copy the full SHA 59acf8aView commit details -
Fix a string merging/split issue caused by standalone comments. (psf#…
…3227) Fixes psf#2734: a standalone comment causes strings to be merged into one far too long (and requiring two passes to do so). Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 21218b6 - Browse repository at this point
Copy the full SHA 21218b6View commit details
Commits on Aug 26, 2022
-
Remove hacky subprocess call in action.yml (psf#3226)
Updates action.yml to use the alternative $GITHUB_ACTION_PATH variable instead of the original ${{ github.action_path }} which caused issues with bash on the Windows runners. This removes the need for a Python subprocess to call the main.py script.
Configuration menu - View commit details
-
Copy full SHA for a5fde8a - Browse repository at this point
Copy the full SHA a5fde8aView commit details -
Fix misdetection of project root with
--stdin-filename
(psf#3216)There are a number of places this behaviour could be patched, for instance, it's quite tempting to patch it in `get_sources`. However I believe we generally have the invariant that project root contains all files we want to format, in which case it seems prudent to keep that invariant. This also improves the accuracy of the "sources to be formatted" log message with --stdin-filename. Fixes psfGH-3207.
Configuration menu - View commit details
-
Copy full SHA for c47b91f - Browse repository at this point
Copy the full SHA c47b91fView commit details
Commits on Aug 27, 2022
-
Lazily import parallelized format modules
`black.reformat_many` depends on a lot of slow-to-import modules. When formatting simply a single file, the time paid to import those modules is totally wasted. So I moved `black.reformat_many` and its helpers to `black.concurrency` which is now *only* imported if there's more than one file to reformat. This way, running Black over a single file is snappier Here are the numbers before and after this patch running `python -m black --version`: - interpreted: 411 ms +- 9 ms -> 342 ms +- 7 ms: 1.20x faster - compiled: 365 ms +- 15 ms -> 304 ms +- 7 ms: 1.20x faster Co-authored-by: Fabio Zadrozny <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e269f44 - Browse repository at this point
Copy the full SHA e269f44View commit details -
Load .gitignore and exclude regex at time of use
Loading .gitignore and compiling the exclude regex can take more than 15ms. We shouldn't and don't need to pay this cost if we're simply formatting files given on the command line directly. I would've loved to lazily import pathspec, but the patch won't be clean until the file collection and discovery logic is refactored first. Co-authored-by: Fabio Zadrozny <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for afed2c0 - Browse repository at this point
Copy the full SHA afed2c0View commit details -
Delay worker count determination
os.cpu_count() can return None (sounds like a super arcane edge case though) so the type annotation for the `workers` parameter of `black.main` is wrong. This *could* technically cause a runtime TypeError since it'd trip one of mypyc's runtime type checks so we might as well fix it. Reading the documentation (and cross-checking with the source code), you are actually allowed to pass None as `max_workers` to `concurrent.futures.ProcessPoolExecutor`. If it is None, the pool initializer will simply call os.cpu_count() [^1] (defaulting to 1 if it returns None [^2]). It'll even round down the worker count to a level that's safe for Windows. ... so theoretically we don't even need to call os.cpu_count() ourselves, but our Windows limit is 60 (unlike the stdlib's 61) and I'd prefer not accidentally reintroducing a crash on machines with many, many CPU cores. [^1]: https://docs.python.org/3/library/concurrent.futures.html#concurrent.futures.ProcessPoolExecutor [^2]: https://github.com/python/cpython/blob/a372a7d65320396d44e8beb976e3a6c382963d4e/Lib/concurrent/futures/process.py#L600
Configuration menu - View commit details
-
Copy full SHA for c0cc19b - Browse repository at this point
Copy the full SHA c0cc19bView commit details
Commits on Aug 31, 2022
-
Add parens around implicit string concatenations where it increases r…
…eadability (psf#3162) Adds parentheses around implicit string concatenations when it's inside a list, set, or tuple. Except when it's only element and there's no trailing comma. Looking at the order of the transformers here, we need to "wrap in parens" before string_split runs. So my solution is to introduce a "collaboration" between StringSplitter and StringParenWrapper where the splitter "skips" the split until the wrapper adds the parens (and then the line after the paren is split by StringSplitter) in another pass. I have also considered an alternative approach, where I tried to add a different "string paren wrapper" class, and it runs before string_split. Then I found out it requires a different do_transform implementation than StringParenWrapper.do_transform, since the later assumes it runs after the delimiter_split transform. So I stopped researching that route. Originally function calls were also included in this change, but given missing commas should usually result in a runtime error and the scary amount of changes this cause on downstream code, they were removed in later revisions.
Configuration menu - View commit details
-
Copy full SHA for ba618a3 - Browse repository at this point
Copy the full SHA ba618a3View commit details -
Use strict mypy checking (psf#3222)
Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2c90480 - Browse repository at this point
Copy the full SHA 2c90480View commit details -
Use .gitignore files in the initial source directories (psf#3237)
Solves psf#2598 where Black wouldn't use .gitignore at folder/.gitignore if you ran `black folder` for example. Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 767604e - Browse repository at this point
Copy the full SHA 767604eView commit details -
Improve & update release process to reflect recent changes (psf#3242)
- Formalise release cadence guidelines - Overhaul release steps to be easier to follow and more thorough - Reorder changelog template to something more sensible - Update release automation docs to reflect recent improvements (notably the addition of in-repo mypyc wheel builds) Co-authored-by: Felix Hildén <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7757078 - Browse repository at this point
Copy the full SHA 7757078View commit details -
Update stable branch after publishing to PyPI (psf#3223)
We've decided to a) convert stable back into a branch and b) to update it immediately as part of the release process. We may as well automate it. And about going back to a branch ... Git tags are not the right tool, at all[^1]. They come with the expectation that they will never change. Things will not work as expected if they do change, doubly so if they change regularly. Once you pull stable from the remote and it's copied in your local repository, no matter how many times you run git pull you'll never see it get updated automatically. Your only recourse is to delete the tag via `git tag -d stable` before pulling. This gets annoying really quickly since stable is supposed to be the solution for folks "who want to move along as Black developers deem the newest version reliable."[^2] See this comment for how this impacts users using our Vim plugin[^3]. It also affects us developers[^4]. If you have stable locally, once we cut a new release and update the stable tag, a simple `git pull` / `git fetch` will not pull down the updated stable tag. Unless you remember to delete stable before pulling, stable will become stale and useless. You can argue this is a good thing ("people should explicitly opt into updating stable"), but IMO it does not match user expectations nor developer expectations[^5]. Especially since not all our integrations that use stable are bound by this security measure, for example our GitHub Action (since it does a clean fetch of the repository every time it's used). I believe consistency would be good here. Finally, ever since we switched to a tag, we've been facing issues with ReadTheDocs not picking up updates to stable unless we force a rebuild. The initial rebuild on the stable update just pulls the commit the tag previously pointed to. I'm not sure if switching back to a branch will fix this, but I'd wager it will. [^1]: https://git-scm.com/docs/git-tag#_on_re_tagging [^2]: https://black.readthedocs.io/en/stable/contributing/release_process.html#moving-the-stable-tag [^3]: psf#2503 (comment) [^4]: In fairness, most folks working on Black probably don't use the `stable` ref anyway, especially us maintainers who'd know what is the latest version by heart, but it'd still be nice to make it usable for local dev though. [^5]: Also what benefit does a `stable` ref have over explicit version tags like `22.6.0`? If you're going to opt into some odd pin mechanism, might as well use explicit version tags for clarity and consistency.
Configuration menu - View commit details
-
Copy full SHA for 0019261 - Browse repository at this point
Copy the full SHA 0019261View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2018e66 - Browse repository at this point
Copy the full SHA 2018e66View commit details
Commits on Sep 1, 2022
-
docs: adds ExitStack alternative to future_style.md (psf#3247)
Co-authored-by: Richard Si <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 095fe0d - Browse repository at this point
Copy the full SHA 095fe0dView commit details -
Add preview flag to Vim plugin (psf#3246)
This allows the configuration of the --preview flag in the Vim plugin.
Configuration menu - View commit details
-
Copy full SHA for 92c93a2 - Browse repository at this point
Copy the full SHA 92c93a2View commit details
Commits on Sep 5, 2022
-
Mitigate deprecation of aiohttp's
@middleware
decorator (psf#3259)This is deprecated since aiohttp 4.0. If it doesn't exist just define a no-op decorator that does nothing (after the other aiohttp imports though!). By doing this, it's safe to ignore the DeprecationWarning without needing to require the latest aiohttp once they remove `@middleware`.
Configuration menu - View commit details
-
Copy full SHA for 062e644 - Browse repository at this point
Copy the full SHA 062e644View commit details -
Move 3.11 tests to install aiohttp without C extensions (psf#3258)
* Move 311 tests to install aiohttp without C extensions - Configure tox to install aiohttp without extensions - i.e. use `AIOHTTP_NO_EXTENSIONS=1` for pip install - This allows us to reenable blackd tests that use aiohttp testing helpers etc. - Had to ignore `cgi` module deprecation warning - Filed issue for aiohttp to fix: aio-libs/aiohttp#6905 Test: - `/tmp/tb/bin/tox -e 311` * Fix formatting + linting * Add latest aiohttp for loop fix + Try to exempt deprecation warning but failed - will ask for help * Remove unnecessary warning ignore Co-authored-by: Cooper Ry Lees <[email protected]> Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 383b228 - Browse repository at this point
Copy the full SHA 383b228View commit details
Commits on Sep 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 72a2559 - Browse repository at this point
Copy the full SHA 72a2559View commit details -
Fix a crash on dicts with paren-wrapped long string keys (psf#3262)
Fix a crash when formatting some dicts with parenthesis-wrapped long string keys. When LL[0] is an atom string, we need to check the atom node's siblings instead of LL[0] itself, e.g.: dictsetmaker atom STRING '"This is a really long string that can\'t be expected to fit in one line and is used as a nested dict\'s key"' /atom COLON ':' atom LSQB ' ' '[' listmaker STRING '"value"' COMMA ',' STRING ' ' '"value"' /listmaker RSQB ']' /atom COMMA ',' /dictsetmaker
Configuration menu - View commit details
-
Copy full SHA for e2adcd7 - Browse repository at this point
Copy the full SHA e2adcd7View commit details
Commits on Sep 15, 2022
-
Improve order of paragraphs on line splitting (psf#3270)
These two paragraphs were tucked away at the end of the section, after the diversion on backslashes. I nearly missed the first paragraph and opened a nonsense issue, and I think the second belongs higher up with it too.
Configuration menu - View commit details
-
Copy full SHA for 04bce6a - Browse repository at this point
Copy the full SHA 04bce6aView commit details -
Fix mypyc build errors on newer manylinux2014_x86_64 images (psf#3272)
Make sure `gcc` is installed in the build env The mypyc build requires `gcc` to be installed even if it's being built with `clang`, otherwise `clang` fails to find `libgcc`.
Configuration menu - View commit details
-
Copy full SHA for d852af7 - Browse repository at this point
Copy the full SHA d852af7View commit details
Commits on Sep 19, 2022
-
Bump furo from 2022.6.21 to 2022.9.15 in /docs (psf#3277)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 6ae8457 - Browse repository at this point
Copy the full SHA 6ae8457View commit details
Commits on Sep 23, 2022
-
Build mypyc wheels for CPython 3.11 (psf#3276)
Bumps cibuildwheel from 2.8.1 to 2.10.0 which has 3.11 building enabled by default. Unfortunately mypyc errors out on 3.11: src/black/files.py:29:9: error: Name "tomllib" already defined (by an import) [no-redef] ... so we have to also hide the fallback import of tomli on older 3.11 alphas from mypy[c].
Configuration menu - View commit details
-
Copy full SHA for 75d5c0e - Browse repository at this point
Copy the full SHA 75d5c0eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c99900 - Browse repository at this point
Copy the full SHA 4c99900View commit details -
Support version specifiers in GH action (psf#3265)
Co-authored-by: Richard Si <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bfc013a - Browse repository at this point
Copy the full SHA bfc013aView commit details
Commits on Sep 24, 2022
-
Fix a crash when
# fmt: on
is used on a different block level than ……`# fmt: off` (psf#3281) Previously _Black_ produces invalid code because the `# fmt: on` is used on a different block level. While _Black_ requires `# fmt: off` and `# fmt: on` to be used at the same block level, incorrect usage shouldn't cause crashes. The formatting behavior this PR introduces is, the code below the initial `# fmt: off` block level will be turned off for formatting, when `# fmt: on` is used on a different level or there is no `# fmt: on`. This also matches the current behavior when `# fmt: off` is used at the top-level without a matching `# fmt: on`, it turns off formatting for everything below `# fmt: off`. - Fixes psf#2567 - Fixes psf#3184 - Fixes psf#2985 - Fixes psf#2882 - Fixes psf#2232 - Fixes psf#2140 - Fixes psf#1817 - Fixes psf#569
Configuration menu - View commit details
-
Copy full SHA for 55db055 - Browse repository at this point
Copy the full SHA 55db055View commit details
Commits on Sep 25, 2022
-
Make README logo link to docs (psf#3285)
docs: Make README logo link to docs
Configuration menu - View commit details
-
Copy full SHA for 4b4680a - Browse repository at this point
Copy the full SHA 4b4680aView commit details -
Switch build backend to Hatchling (psf#3233)
This implements PEP 621, obviating the need for `setup.py`, `setup.cfg`, and `MANIFEST.in`. The build backend Hatchling (of which I am a maintainer in the PyPA) is now used as that is the default in the official Python packaging tutorial. Hatchling is available on all the major distribution channels such as Debian, Fedora, and many more. ## Python support The earliest supported Python 3 version of Hatchling is 3.7, therefore I've also set that as the minimum here. Python 3.6 is EOL and other build backends like flit-core and setuptools also dropped support. Python 3.6 accounted for 3-4% of downloads in the last month. ## Plugins Configuration is now completely static with the help of 3 plugins: ### Readme hynek's hatch-fancy-pypi-readme allows for the dynamic construction of the readme which was previously coded up in `setup.py`. Now it's simply: ```toml [tool.hatch.metadata.hooks.fancy-pypi-readme] content-type = "text/markdown" fragments = [ { path = "README.md" }, { path = "CHANGES.md" }, ] ``` ### Versioning hatch-vcs is currently just a wrapper around setuptools-scm (which despite the legacy naming is actually now decoupled from setuptools): ```toml [tool.hatch.version] source = "vcs" [tool.hatch.build.hooks.vcs] version-file = "src/_black_version.py" template = ''' version = "{version}" ''' ``` ### mypyc hatch-mypyc offers many benefits over the existing approach: - No need to manually select files for inclusion - Avoids the need for the current CI workaround for mypyc/mypyc#946 - Intermediate artifacts (like `build/`) from setuptools and mypyc itself no longer clutter the project directory - Runtime dependencies required at build time no longer need to be manually redeclared as this is a built-in option of Hatchling Co-authored-by: Richard Si <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 468ceaf - Browse repository at this point
Copy the full SHA 468ceafView commit details
Commits on Sep 26, 2022
-
Fix outdated references to 3.6 and run pyupgrade (psf#3286)
I also missed the accidental removal of the 3.11 classifier in the PR.
Configuration menu - View commit details
-
Copy full SHA for 2189bca - Browse repository at this point
Copy the full SHA 2189bcaView commit details -
Configuration menu - View commit details
-
Copy full SHA for af3de08 - Browse repository at this point
Copy the full SHA af3de08View commit details -
Bump actions/upload-artifact from 2 to 3 (psf#3289)
updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 42fdd1b - Browse repository at this point
Copy the full SHA 42fdd1bView commit details -
Bump sphinx from 5.1.1 to 5.2.1 in /docs (psf#3288)
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 5.1.1 to 5.2.1. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/5.x/CHANGES) - [Commits](sphinx-doc/sphinx@v5.1.1...v5.2.1) --- updated-dependencies: - dependency-name: sphinx dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 1f2ad77 - Browse repository at this point
Copy the full SHA 1f2ad77View commit details -
Add option to format Jupyter Notebooks in GitHub Action (psf#3282)
To run the formatter on Jupyter Notebooks, Black must be installed with an extra dependency (`black[jupyter]`). This commit adds an optional argument to install Black with this dependency when using the official GitHub Action [1]. To enable the formatter on Jupyter Notebooks, just add `jupyter: true` as an argument. Feature requested at [2]. [1]: https://black.readthedocs.io/en/stable/integrations/github_actions.html [2]: psf#3280 Signed-off-by: Antonio Ossa Guerra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6b42c2b - Browse repository at this point
Copy the full SHA 6b42c2bView commit details
Commits on Sep 29, 2022
-
Mention CHANGES.md in PR template explicitly (psf#3295)
This makes the location more explicit which hopefully makes the PR process smoother for other first time contributors. Co-authored-by: Jelle Zijlstra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 096806e - Browse repository at this point
Copy the full SHA 096806eView commit details -
Bump pypa/cibuildwheel from 2.10.0 to 2.10.2 (psf#3290)
updated-dependencies: - dependency-name: pypa/cibuildwheel dependency-type: direct:production update-type: version-update:semver-patch Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for ddb9924 - Browse repository at this point
Copy the full SHA ddb9924View commit details -
Enable build isolation under CIWB (psf#3297)
No idea how this is still here after the Hatchling PR, but it is no longer useful and is breaking the build.
Configuration menu - View commit details
-
Copy full SHA for 141291a - Browse repository at this point
Copy the full SHA 141291aView commit details
Commits on Oct 2, 2022
-
Add .ipynb_checkpoints to DEFAULT_EXCLUDES (psf#3293)
Jupyter creates a checkpoint file every single time you create an .ipynb file, and then it updates the checkpoint file every single time you manually save your progress for the initial .ipynb. These checkpoints are stored in a directory named `.ipynb_checkpoints`. Co-authored-by: Batuhan Taskaya <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 956bf39 - Browse repository at this point
Copy the full SHA 956bf39View commit details
Commits on Oct 3, 2022
-
Bump myst-parser from 0.18.0 to 0.18.1 in /docs (psf#3303)
Bumps [myst-parser](https://github.com/executablebooks/MyST-Parser) from 0.18.0 to 0.18.1. - [Release notes](https://github.com/executablebooks/MyST-Parser/releases) - [Changelog](https://github.com/executablebooks/MyST-Parser/blob/master/CHANGELOG.md) - [Commits](executablebooks/MyST-Parser@v0.18.0...v0.18.1) --- updated-dependencies: - dependency-name: myst-parser dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for b1077aa - Browse repository at this point
Copy the full SHA b1077aaView commit details -
Bump furo from 2022.9.15 to 2022.9.29 in /docs (psf#3304)
Bumps [furo](https://github.com/pradyunsg/furo) from 2022.9.15 to 2022.9.29. - [Release notes](https://github.com/pradyunsg/furo/releases) - [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md) - [Commits](pradyunsg/furo@2022.09.15...2022.09.29) --- updated-dependencies: - dependency-name: furo dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Cooper Lees <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 980997f - Browse repository at this point
Copy the full SHA 980997fView commit details -
Bump sphinx from 5.2.1 to 5.2.3 in /docs (psf#3305)
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 5.2.1 to 5.2.3. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/5.x/CHANGES) - [Commits](sphinx-doc/sphinx@v5.2.1...v5.2.3) --- updated-dependencies: - dependency-name: sphinx dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 1a20c4d - Browse repository at this point
Copy the full SHA 1a20c4dView commit details -
Bump docutils from 0.18.1 to 0.19 in /docs (psf#3161)
Bumps [docutils](https://docutils.sourceforge.io/) from 0.18.1 to 0.19. --- updated-dependencies: - dependency-name: docutils dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 27d7ea4 - Browse repository at this point
Copy the full SHA 27d7ea4View commit details
Commits on Oct 4, 2022
-
Preserve crlf line endings in blackd (psf#3257)
Co-authored-by: KotlinIsland <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0359b85 - Browse repository at this point
Copy the full SHA 0359b85View commit details
Commits on Oct 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 4c1a9eb - Browse repository at this point
Copy the full SHA 4c1a9ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 85d425f - Browse repository at this point
Copy the full SHA 85d425fView commit details