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 one-time affair. Run it once and then ensure that typing is valid with mypy in CiCd.
Bear in mind that MonkeyType can make code changes, and that black will then make those changes conform to its coding style, and that’s ok. More than ok.
F.
_______________________________________________
code-quality mailing list -- code-quality@python.org
To unsubscribe send an email to code-quality-leave@python.org
https://mail.python.org/mailman3/lists/code-quality.python.org/
Member address: strombrg@gmail.com