black
black copied to clipboard
The uncompromising Python code formatter
PEP 621 provides `project.requires-python` field in pyproject.toml. I expect, that most of the tools will support this field eventually. Each code-related linter and formatter has a setting for supported python...
**Disclaimer**: I've seen [pip](https://github.com/pypa/pip/issues/11238) and [mypy](https://github.com/python/mypy/issues/13089) use release planning issues. I've got a lot of free time for the time being so I'm curious to whether they would be of...
Signed-off-by: Shivam Durgbuns fixes: https://github.com/psf/black/issues/3176 ### Description ### Checklist - did you ... - [ ] Add a CHANGELOG entry if necessary? - [ ] Add / update tests if...
Given a file containing a backslash preceeded and followed by any number of newlines, Black ae5588 and 19.3b0 throw `blib2to3.pgen2.tokenize.TokenError: 'EOF in multi-line statement', (2, 0)`. I consider this a...
```python weird = "pass #\r#\n" exec(weird) # works, as does `compile` etc. black.format_str(weird, mode=black.FileMode()) # fails with `black.InvalidInput` ``` Operating system: Windows Python version: 3.7.3 *Black* version: 19.3b0 Does also...
We'd like to be able to format .pyx, .pxd, and .pxi files, too.
Currently, Black uses a vendored version of [lib2to3](https://docs.python.org/3/library/2to3.html#module-lib2to3) for parsing. This works well for parsing Python 2 and early Python 3, but Python has now moved on to a PEG-based...
Pylint inline comments on wrong line after wrapping long line. Inline comments that trail a command continue to trail the command after black wraps a long line onto multiple lines....
### Description This is the last part of #3017. This is effectively unchanged from the original PR, except for the addition of a commit to workaround a Windows shell quoting...
See https://github.com/ichard26/black-deps-ci/runs/7374216061?check_suite_focus=true. We can either bump the lower bound requirement for aiohttp, or we can reuse the approach taken in https://github.com/psf/black/pull/2974/ for a similar issue. I'll note that aiohttp 4.0...