Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore procedural generation of Python source code in this 31-minute EuroPython 2021 conference talk. Dive into novel techniques for testing Python linters and fixers using Hypothesis and related tools. Learn how to address corner cases in Python's complex syntax, discover potential issues in widely-used tools like Black and the Python parser, and gain insights into source-code fuzzing. Understand the importance of comprehensive testing for code analysis tools, with a focus on flake8 and libcst. Grasp the fundamentals of parsers and programming language design as you uncover innovative approaches to ensure the robustness of Python development tools.
Syllabus
Intro
Greetings!
About this talk
Code... What is it, really?
Linters and autoformatters
Checking the Checkers
Random acts of code
Structure is the king
Grammar as a template
Enter Hypothesis
LarkStrategy
Python is quirky
Enter Hypothesmith
Targeted search
Bugs found with Hypothesmith
Caveats
Further reading
Taught by
EuroPython Conference