Yeah, black does tend to expand some. On test_cli_main.py the only thing 'changed' was the very last blob to add a test. The rest of that module is black reformatting.
After working with Python since 2004 (v1.5.2) , I'll say it's good for development of small projects, but gets more and more unwieldy the larger the project. The changes between 1 and 2 were fairly innocuous, but between 2 and 3 backwards compatibility took a real big hit. I don't plan to be doing Python for 3 to 4.
Right now PyPA (Python Packaging Authority) is on my radar. According to them, instead of setup.py we should be using pyproject.toml files, and make everything table driven. That's going to be a major effort for duplicity. They are deprecating and removing things we use in setup.py to force the conversion. Someday I'll get to develop new code, not just munge old code into shape.
I miss the clarity of C/C++ (on UNIX, not Windows). The language is solid and the committee running it is competent. I'm beginning to think Python is run by a committee of committees. Heinlein said: "A committee is a life form with six or more legs and no brain.". After all these years, I have to agree with him.
...Ken