~/talk

Pyre, Lints, Codemods, Code Quality, and You

Talkat PyBay 2024 · on Saturday, 2024-09-21· [typescript, developer-experience]
links:none on file
slides:none on file

A five-step practical plan: identify a measurable problem, run pyre and pystatistics to get counts, recruit stakeholders, automate fixes or teach teams, and lock progress with stricter checks. Tools shown: libCST for AST codemods, fixit to turn codemods into lints, and pyre features like 5,000 errors suppressed then driven down and pystrict to force annotations on new code. Example codemod removes redundant enum annotated assigns and ships as many small PRs.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:27Five steps to code quality
  3. 4:14Why use Python types
  4. 8:31Enabling type checkers
  5. 10:37Gathering metrics with Pyre
  6. 13:47Writing code mods with LibCST
  7. 19:11Protecting progress with lints
  8. 20:00Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.