[code-quality] Black and MonkeyType

2022-07-30 Thread Dan Stromberg
Hello folks. If you have a project you want to eventually run through both Black and MonkeyType, is there any advantage to running Black first? IOW, is MonkeyType less likely to get confused by Black-formatted code than by inconsistently multiple-humans-formatted code? Also, I'm hearing that Bla

[code-quality] Re: Black and MonkeyType

2022-07-30 Thread Frank Harrison
Two completely different use-cases. Black normalises syntax (always run) MonkeyType adds typing information (one-time run) … so you can run each in isolation and be ok. Normally you run black frequently, on each and every commit/save, as it just makes life easier. Whereas Monkey type is more on

[code-quality] Re: Black and MonkeyType

2022-07-30 Thread Dan Stromberg
Thanks for the reply. I was actually wondering Black does a before-and-after AST comparison for reliability. Does MonkeyType do anything like that? And if not, would MonkeyType be less prone to introducing bugs if we run Black first? On Sat, Jul 30, 2022 at 9:19 AM Frank Harrison wrote: