Lab 7, Formatting and Linting
Unfortunately, the past two months haven’t been great, however that still doesn’t stop me from learning about Formatting and Linting Code.
I’ve had some experience with Formatting code in Python, as I had to use Black for other Open Source repositories. (OpenWPM). I’ve encountered Linting during Hacktoberfest (repositories needed to be linted properly). I’ve read a lot about PyLint, and how it works, so I thought it would be a great Linter for my URL Checker.
First off, because our Linter and Formatter will be executed automatically, this means that I need to create a simple Shell script in order to invoke said libraries on my URL Tester.
Hooking said Script is actually a lot easy on Atom, cause there’s a package meant for hooking Shell Scripts onto a key (see — https://atom.io/packages/atom-shell-commands).
Once that’s done, it’s really just pressing a single key to check if the Linting is correct, and formats your code.
Lab 7 wasn’t too bad, because it exposed me to the tools that I’ve already been using. I think it helped me with my confidence, in terms of properly formatting my code, and hooking Scripts onto my IDE.