myint / pyformat

Formats Python code to follow a consistent style
https://pypi.python.org/pypi/pyformat
94 stars 10 forks source link

Broken since docformatter 1.5 #13

Open matthiakl opened 1 year ago

matthiakl commented 1 year ago

With newest docformatter version 1.5, pyformat fails with AttributeError: module 'docformatter' has no attribute 'format_code'

Mukhametvaleev commented 1 year ago

I have the same issue

thmsgntz commented 1 year ago

+1

DanHerbert commented 1 year ago

It looks like there's a few of dependencies that that have caused breakages in pyformat. docformatter is the main problem, but from attempting to create a patch for this there are actually some other things broken as well that could have their own bugs created for them.

It seems like addressing the docformatter bug allows the script to run, but the --jobs and --aggressive flags are also broken. As long as you don't need those 2 flags, fixing docformatter makes things work again. I've forked this repo with a fix but I don't plan on submitting a pull request since I needed to remove quite a few unit tests that were broken by the other flags I mentioned so there might still be some corner cases that are still broken with this fork.