-
```
[style]
based_on_style=pep8
continuation_align_style=FIXED
```
reformats:
```
class CLI(object):
def __init__(self):
self.modes = {
'request': self.request,
…
-
In your setup.py these extra ' quotes break conda builds and are not required, I think:
```python
"yapf >= '0.28'; python_version < '3.6'",
"black >= '19.3'; python_version >= '3.6'",
```
I t…
-
yapf seemingly cannot handle the new PEP 448 syntax for unpacking dictionaries. Example:
I have yapf `0.12.2`.
```
$ echo "print({**{'a':1}, **{'a':2}})" | python3
{'a': 2}
```
Works perfectly fine…
-
The knob `"ALLOW_SPLIT_BEFORE_DEFAULT_OR_NAMED_ASSIGNS"` is not recognized by `yapf`. Neither Python code with the `FormatCode` works no running a command-line application.
The error message printe…
-
As per #195, yapf shouldn't add a trailing newline to an empty file. It mostly doesn't, but if you run against stdin instead of a named file for some reason it does:
```
$ echo -n | yapf --style=pep8…
-
Traceback (most recent call last):
File "/opt/python3.7/lib/python3.7/site-packages/yapf/yapflib/pytree_utils.py", line 122, in ParseCodeToTree
tree = parser_driver.parse_string(code, debug=Fa…
-
pep8radius 0.9.2
```
$ pip install --user --upgrade pep8radius
Requirement already up-to-date: pep8radius in /home/jeremysalwen/.local/lib/python2.7/site-packages
Requirement already up-to-date: auto…
-
pep8 mandates spaces around operators, but yapf doesn't put them around exponentiation (\*\*):
yapf --style=pep8 will format the following code as itself:
```python
x**y
```
I tested this r…
-
Take the following lengthy call chain
```python
def some_function(session):
result = (session.query(models.Employee.id).filter(models.Employee.business_id == unique_id).filter(models.Employee.a…
-
I have the following code:
```python3
class A:
def __init__(self, *extras):
super().__init__(
*chain((AbcdEfghij, AbcDef, AbcdEfghiJklmnopqr), extras))
```
Running y…