Unleash the Chaos: Developing a Linter for Un-Pythonic Code!

李唯 (Wei Lee)

李唯 (Wei Lee)

Wei Lee is an open-source ethicist. He is currently an Apache Airflow committer, a maintainer of commitizen-tools, and a PyCon Taiwan volunteer. As a lazy engineer, Wei is passionate about automating tasks using Python. When he is not working, Wei enjoys exploring the world through travel. Attending PyCon events gives him the perfect opportunity to do so. Wei has already attended PyCon TW 🇹🇼, PyCon US 🇺🇸, PyCon JP 🇯🇵, PyCon CA 🇨🇦, Euro Python 🇪🇺 (remotely 🥲) and Remote Python Pizza 🍕 (remotely 🥲). Personal Website: https://wei-lee.me/ Twitter: @clleew

    Abstract

    Before releasing the chaos, we will explore how the "ast" module can programmatically analyze and manipulate Python code at an abstract syntax level and how this abstract syntax tree concept helps existing tools like Black improve the Python world. Once we know the secret, we will guide you in building a custom linter using this module. This technique is particularly useful when configuring existing tools that cannot fix your style problems or if you want to make your Python code unpythonic. Join us to learn more and bring chaos to the Python world!

    Description

    Location

    R2

    Date

    Day 1 • 05:20-05:50 (UTC)

    Language

    English talk

    Level

    Intermediate

    Category

    Python Core