mikehoyio / atom-python-black

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

Black Messing Up Working Code #30

Open barmanroys opened 2 years ago

barmanroys commented 2 years ago

Using black, 21.12b0 (installed with pip3) on Ubuntu 20.04, integrated with this atom-editor package.

The package seems to be messing up working code, introducing duplicate definitions of well defined functions and putting bracket opens and close at random places that are throwing error.

Even if pylint was showing only warning and no error before applying black, the pylint itself is showing multiple errors after formatting with this package. The main issues I am coming up with

The problems are not occurring when I try to black a file via terminal command, but only when Atom does it, which makes me think the issue lies at the black integration with atom, rather than the implementation underneath. Attached is a summary of packages I have installed.

packages.txt