rupert / pyls-black

Black plugin for the Python Language Server
MIT License
72 stars 9 forks source link

Bug when formatting selection at top of file #1

Closed rupert closed 6 years ago

rupert commented 6 years ago

The following gets formatted correctly:

# hello
x=1+2

If the comment is removed the code is not formatted:

x=1+2

Tested using Sublime Text.

rupert commented 6 years ago
appdirs==1.4.3
attrs==18.1.0
black==18.6b2
click==6.7
future==0.16.0
isort==4.3.4
jedi==0.12.0
mypy==0.610
parso==0.2.1
pluggy==0.6.0
pyls-black==0.1.0
pyls-isort==0.1.1
pyls-mypy==0.1.3
python-language-server==0.19.0
toml==0.9.4
typed-ast==1.1.0
rupert commented 6 years ago

Fixed in 0.2.0.