black icon indicating copy to clipboard operation
black copied to clipboard

The uncompromising Python code formatter

Results 577 black issues
Sort by recently updated
recently updated
newest added

Bumps [docutils](https://github.com/rtfd/recommonmark) from 0.21.2 to 0.22.3. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=docutils&package-manager=pip&previous-version=0.21.2&new-version=0.22.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

T: documentation
C: dependencies
skip news

For example: ``` filtered_trait_instructions: list[str] = [ - trait for trait in (traits_instructions or []) if trait + trait for trait in traits_instructions or [] if trait ] ``` There...

2023: #3407 2024: #4042 2025: #4522 Ruff: https://github.com/astral-sh/ruff/issues/20482 As always, the ideal is for all preview features to be stabilized, not including the unstable ones. --- Ordered by most controversial...

T: enhancement
T: style
C: maintenance

When using the prebuilt binary on Mac I am seeing the following: ``` INFO: Running command line: /private/var/tmp/_bazel_fp/01684213bb9c693047272ec8f0247481/external/+_repo_rules+black_macos/file/downloaded All done! ✨ 🍰 ✨ 575 files left unchanged. Traceback (most recent...

T: bug

As of now, each individual wheel is pushed to PyPI seperately. This means if CI fails on whatever wheel when making a PyPI release, the release will be incomplete. These...

**Is your feature request related to a problem? Please describe.** When black encounters a Python file with a syntax error, the current error message is often dense, confusing. This forces...

T: enhancement

### Fixes #4820 **I validated the Following error message** **I enhanced the Error reporting message to be more clear!** - I reproduced the Error reporting message by Creating the exact...

Hypothesis is planning to adopt Black (HypothesisWorks/hypothesis#1686), but I noticed a weird linebreak when a condition follows a comment. Originally this was [in this example](https://github.com/HypothesisWorks/hypothesis/blob/af79a66fbaa2247692f7fe0dff5502b9c839ccc3/hypothesis-python/examples/test_rle.py#L46-L53), but the simple repro is...

T: bug
F: comments

As @Shivansh-007 noted in https://github.com/psf/black/issues/2238#issuecomment-1010922392, our current CHANGES.md mechanism for the changelog is very prone to merge conflicts. Another problem is that when a release happens between the time a...

T: enhancement

### Description Trying the change from #4771 , I'd like to see if this helps reduce the diff-shades runtime, since the 22% speed increase from #4771 could be enough to...