mikehoyio / atom-python-black

Python Black for Atom editor
MIT License
20 stars 7 forks source link

only send line length arg to black if it's defined #12

Closed jaredmcdonald closed 5 years ago

jaredmcdonald commented 5 years ago

fixes #11

Other options from pyproject.toml were actually getting picked up -- it's just that the line length was always passed to the black CLI, which overrides any value set in pyproject.toml. This PR makes it so that we only pass an argument for line length if the user has configured it.

jaredmcdonald commented 5 years ago

hey @mikehoyio, any chance you could take a quick look at this? thanks :)

mikehoyio commented 5 years ago

Hey, sorry I've taken to long to get back to you on this. Will be looking at and merging this today.

jaredmcdonald commented 5 years ago

@mikehoyio no worries at all - thanks for your work on this!