rupert / pyls-black

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

Set target_version to set() on the default config #21

Closed fsouza closed 5 years ago

fsouza commented 5 years ago

This happens whenever running pyls_black on a project that doesn't define a config file (there's an early return).

Writing a test for this can get tricky, but I could give it a shot.

Follow up from #20.

rupert commented 5 years ago

@fsouza thanks for the quick fix. I've manually tested it in a project without a config file and it seems to have fixed the bug. It's been released in version 0.4.4.

If you have time to add a proper test, I would be really grateful.

Thanks!

fsouza commented 5 years ago

@rupert thanks for the quick feedback! I'll look into writing a test tomorrow, I apologize for not including it originally.