There are moments when you'd automatically want to run a script the moment
that a file updates. Instead of running these things by hand we can use a
nifty tool called
entr to help us automate these things. The project page
for this tool can be found here.
This is the code that fixes the unit test.
def valid_url(url: str): if not url.startswith("https://"): if not url.startswith("http://"): return False return True
The main point here is not that we're done writing code or that we're done writing unit tests. Rather that we've got a like-able workflow here.
Feedback? See an issue? Something unclear? Feel free to mention it here.
If you want to be kept up to date, consider getting the newsletter.