Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Lint-Review by Adrian Moisey

Pycon ZA
October 05, 2017

Lint-Review by Adrian Moisey

A Lightning Talk at PyConZA 2017

Pycon ZA

October 05, 2017
Tweet

More Decks by Pycon ZA

Other Decks in Programming

Transcript

  1. Why style your code? • Consistency • Easier to read

    • Follow community/official standards (PEP-8, Rubocop, PHPCS, JCSC) • Familiarity with foreign code bases
  2. But I just don’t care about style... • Some linters

    catch syntax errors • Flake8 catches some code breaking syntax errors
  3. Why Lint Review? • It runs against a GitHub Pull

    Request ◦ It only cares about the code that you actually changed • Helps to style an unstyled codebase • Easy to add more linters (it’s written in Python + Flask)
  4. Features I’d like to see, if you want to help

    out... • Python 3 • Mypy • GitLab