hhatto / autopep8

A tool that automatically formats Python code to conform to the PEP 8 style guide.
https://pypi.org/project/autopep8/
MIT License
4.56k stars 290 forks source link

List with negative integers not formatted correctly #600

Open maltekliemann opened 3 years ago

maltekliemann commented 3 years ago
very_long_variable_name = [1231980429, -23183829038120, -32189308390, -1382928391083290, 18239018391203892, -78129380391839201, 714128390283, -23138290831]

gets simplified to

very_long_variable_name = [1231980429, -
                           23183829038120, -
                           32189308390, -
                           1382928391083290, 18239018391203892, -
                           78129380391839201, 714128390283, -
                           23138290831]

This is not as expected.

Command Line and Configuration

Command Line

$ autopep8 -a file.py

Your Environment