Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal - Sourcery automatic code generation for boilerplate #68

Open
vaderdan opened this issue Nov 19, 2018 · 1 comment
Open

Proposal - Sourcery automatic code generation for boilerplate #68

vaderdan opened this issue Nov 19, 2018 · 1 comment

Comments

@vaderdan
Copy link
Contributor

vaderdan commented Nov 19, 2018

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

@jdisho
Copy link
Owner

jdisho commented Dec 10, 2018

I like the idea!
A PR is very welcomed 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants