$30 off During Our Annual Pro Sale. View Details »

pep8 vs PEP-8

pep8 vs PEP-8

PyCon 2016 Lightning Talk - State of the pep8 -> pycodestyle transition.

YouTube video: https://youtu.be/PulzIT8KYLk?t=36m

Ian Lee

May 31, 2016
Tweet

More Decks by Ian Lee

Other Decks in Programming

Transcript

  1. pep8 vs PEP-8
    Ian Lee
    @IanLee1521

    View Slide

  2. The Setup…

    View Slide

  3. Define Your Terms
    PEP-0008 aka PEP-8 

    (document)
    vs
    pep8

    (tool)

    View Slide

  4. Define Your Terms
    PEP = Python Enhancement Proposal

    View Slide

  5. Why am I?
    Leave everything better than you found it…

    View Slide

  6. Who am I?
    Lawrence Livermore National Laboratory
    github.com/llnl — software.llnl.gov
    @LLNL_OpenSource

    View Slide

  7. Who am I?
    • Maintainer: pep8
    • Contributor: fastkml, pygeoif
    • Editor (?): benbalter.github.com

    View Slide

  8. Quick Tangent…
    benbalter.github.com

    View Slide

  9. Who am I?
    • Maintainer: pep8
    • Contributor: fastkml, pygeoif
    • Editor (?): benbalter.github.com
    • One micro project: find-duplicates

    View Slide

  10. Who am I?

    View Slide

  11. Who am I?
    Scuba Diver

    View Slide

  12. Who am I?
    Rock Climber

    View Slide

  13. Who am I?
    Blues Dancer

    View Slide

  14. Who am I?
    Love / hate relationship

    with technology…

    View Slide

  15. Philmont April 2016

    View Slide

  16. History
    *as I understand it

    View Slide

  17. First Commit of PEP-8

    View Slide

  18. PEPs are *not* static
    • 118 commits since 2001
    • https://hg.python.org/peps/log/tip/pep-0008.txt?revcount=256

    View Slide

  19. pep8
    • Original Author: Johann C. Rocholl (@jcrocholl)
    • First commit: October 1, 2006
    • PEP-8 had already changed 34 times

    View Slide

  20. pep8
    • Maintainer: Florent Xicluna (@florentx)
    • October 2009 - May 2014 + December 2014
    • PEP-8 changed another 51 times

    View Slide

  21. pep8
    And now my turn…

    View Slide

  22. pep8
    • December 2014 - Present
    • PEP-8 changed another 20 times
    • Total downloads > 17m

    View Slide

  23. PyCQA .
    pycodestyle (pep8)
    astroid
    baron
    flake8
    mccabe
    pydocstyle (pep257)
    redbaron
    flake8-docstrings
    mccabe-console-script
    pep8-naming

    View Slide

  24. And then…

    View Slide

  25. GitHub #466

    View Slide

  26. pep8 -> pycodestyle

    View Slide

  27. Hurdles…

    View Slide

  28. ReadTheDocs

    View Slide

  29. PyPI

    View Slide

  30. Downstream

    View Slide

  31. Progress to date…

    View Slide

  32. pep8 == 1.7.1
    Coming soon

    View Slide

  33. pep8 == 1.7.1
    Coming soon

    View Slide

  34. pycodestyle == 2.0

    View Slide

  35. #PyCon2016 Sprint
    Thursday Only

    View Slide

  36. Government Open Space
    Tomorrow Morning / 10:00 / Room == TBA

    View Slide

  37. Thank You!
    @IanLee1521

    View Slide