Weeknotes01
Interrogating docstrings, Django's custom user model, Python's ast
and tokenize
module.
Oh boy! The week was more fun than I had planned.
Let's walk through each of them one at a time:
After finishing one of the courses on Django Celery. I wanted to put my knowledge to the test by building a knockoff version of Buttondown. Started a project called Hermes. Currently, Hermes has all the models done, celery setup is done and basic auth in place. Wanted to implement a custom user model so that the username field can be emailed instead of a username. So currently stuck with a bug related to that hopefully, will be resolved by next week.
I picked an issue in a library interrogate. interrogate gives a coverage report of missing docstrings and currently does not have a skip function like
noqa
. So I picked up the issue to add that. On a quick glance saw thatast
module was being internally used. Thoughast
module doesn't include comments. Thetokenize
module can give you comments but doesn't provide other program structures. So I guess I need to mix and match both to add the feature.Last year I sprinted for scanapi at EuroPython sprints 2020. I moved back to the project this week. Started back again by adding some docs, adding issue templates, and docstring coverage to the project. Also, this is how I stumbled upon
interrogate
.
I also managed to stay on course with my yearly health goal. Meditated daily and spent a decent 40min doing some cardio/core exercises on the working weekdays.
That's it for this week. Until next week. Stay safe folks.