Papr icon indicating copy to clipboard operation
Papr copied to clipboard

Proposal - Sourcery automatic code generation for boilerplate

Open vaderdan opened this issue 5 years ago • 1 comments

Hi what do you think about Sourcery (https://github.com/krzysztofzablocki/Sourcery) It generates generates some of the duplicate/boilerplate code for you

I think that model protocols for every model have identical structure and could be removed (moved to autogenerated file) with this See this gist, https://gist.github.com/vaderdan/cfd9ef853f123143e580ec2e3664a8c1 Basicaly it scans for classes that extends Automodel and make protocols with inputs/outputs from them

https://www.caseyliss.com/2017/3/31/the-magic-of-sourcery

vaderdan avatar Nov 19 '18 16:11 vaderdan

I like the idea! A PR is very welcomed 🎉

jdisho avatar Dec 10 '18 21:12 jdisho