-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Add a Python code formatter #38
Comments
Nice! I think would be nice to add it to Travis as well, @berinhard. |
hey there! i've talked to @anapaulagomes and i'd like to take this issue. (: |
Sure @giovana-morais! Feel free to tackle this one and thanks for your help 👍 |
hey @berinhard and @anapaulagomes ! now I'm trying to add it to Travis as well, but I never did this before and I'm kinda lost... should I add it to also, I thought about creating a |
That's great, @giovana-morais! Yes, you should add this command to the section The contribution guide is a great idea but I think we already have one in place in our docs: https://model-bakery.readthedocs.io/en/latest/#contributing-to-model-bakery. It may need to be updated though... 🤔 About this issue specifically, I think it's out of scope of this project. Feel free to ping me if you have any questions. I'm commenting from my phone so I apologise if something is missing. Thank you! |
Done! I added it before tox checks and now I'm running Travis CI in my branch to see if everything is okay in the build. I'm not sure if it's the best way to do so, but anyways. ahahah I'm only having some trouble now because after black reformatted the source files, flake8 and pydocstyle are failing. Did this happen before? I can't commit the formatted files because of this. Sorry to bother D: EDIT: I found out that when I try to build with Python 3.5 , |
No worries, I think you're in the right path. :)
So, I've checked and seems that
I'm glad that it works! 🎉 Just now I realized that I suggested you to add to the script section. Sorry about that. The ideal place would be Lines 1 to 6 in e57b42f
and https://github.com/model-bakers/model_bakery/pull/39/files BUT it will run for every job... And still break for 3.5. So, I left a comment about this in my PR (#39 (comment)) (cc @amureki, @berinhard). Since I'm not a Travis knight, let's put this part on hold and see what they say. Good job so far! @giovana-morais |
Ok, now (thanks to @amureki) we have separated job for flake8 (#40). You can use the same structure for black, @giovana-morais. 😬 |
Thanks @anapaulagomes for helping with this! I was traveling for the last few days with my family and I only got back to work today. Thanks @giovana-morais for all the effort as well! |
Awesome! I've learned a lot so far. 😊 A few days ago, I've added Right now I'm trying to correct the Thanks for all the support! ❤️ |
Done #42. ✔️ |
We should add Black to enforce some code styles to improve legibility and maintenance.
The text was updated successfully, but these errors were encountered: