19:49Python AST Parsing and Custom Linting
From the creator
Let's write a custom linting plugin! Linting is the process of checking your code for various stylistic and structural things that you (subjectively) want to avoid. Flake8 is a popular linter that has a lot of good default checks, but what if you want to make your own checks? In that case, you can write your own custom Flake8 plugin, which is what we do in this video! We will use the ast module to programmatically parse and examine the structure of our Python code in order to actually implement the checks. Note: flake8 no longer supports 4 letter prefixes as of version 5, so MCOD has been changed to MC in the source code. ― mCoding with James Murphy (https://mcoding.io) Source code: https://github.com/mCodingLLC/VideosSampleCode flake8: https://flake8.pycqa.org/en/latest/ ast docs: https://docs.python.org/3/library/ast.html Another great flake8 plugin tutorial: https://www.youtube.com/watch?v=ot5Z4KQPBL8 Import loops vid: https://youtu.be/UnKa_t-M_kM Multiple assignment vid: https://youtu.be/ZjoZKXel618 Testing/packaging vid: https://youtu.be/DhUpxWjOhME SUPPORT ME ⭐ --------------------------------------------------- Patreon: https://patreon.com/mCoding Paypal: https://www.paypal.com/donate/?hosted_button_id=VJY5SLZ8BJHEE Other donations: https://mcoding.io/donate Top patrons and donors: Jameson, Laura M, Dragos C, Vahnekie, John Martin, Casey G BE ACTIVE IN MY COMMUNITY 😄 --------------------------------------------------- Discord: https://discord.gg/Ye9yJtZQuN Githu
Published 2022-01-18 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.
Keep exploring Learn to Code
19:49
16:34From Backyard Telescopes to AI‑Powered Art Sales, on Mr. Maeda's Cozy AI Kitchen
Microsoft Developer
12:36
01:41
19:30Next-Level SQL in VS Code: GitHub Copilot Custom Instructions, Plan Mode & Skills | Data Exposed
Microsoft Developer
06:01PostgreSQL Like a Pro: Experience performance under pressure with PostgreSQL on Azure
Microsoft Developer
22:51