~/talk

Publishing well formed Python packages

Talkat PyCon India 2020 · 2020-10-02..10-05· [python, developer-experience]
name:Julin S
links:none on file
slides:none on file

Adopts concrete tooling and practices: use pylint / flake8 / black for style, mypy or pyre for static types, and vulture to find dead code; an example shows mypy catching an int-for-bool bug and coverage rising to 100% after adding one missing test. Recommends pytest plus coverage.py and tox/nox to run tests in isolated virtualenvs, explains that an src layout prevents accidental imports that spoil tox tests, and notes packaging with setuptools/flit/poetry and publishing via twine or built-in flit/poetry commands.

AI-written summary · about

  1. 0:00Intro
  2. 0:28Well formed package
  3. 1:15Overview
  4. 4:31Linting and style - Tools: Black
  5. 6:49Static type checking - Example
  6. 8:50Dead code
  7. 9:49Unit testing
  8. 10:47pytest - Example
  9. 12:39Test coverage - Example
  10. 14:38Test automation - Tools
  11. 16:31Package layout - flat
  12. 18:21Packaging
  13. 18:53Publishing
  14. 19:22Other tools
  15. 19:59The way ahead
  16. 20:59Summary
~/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.