# Linting

pylintflake8lintpep8
  • Most opensource porjects use flake8[1]
  • Pylint appears to be significantly more popular. Performance-wise flake8 seems to be faster but there is not much difference on small files and projects and on large projects one would probably use pylint anyway since it provides deeper analysis.[2]

# Pylint

  1. Type Checker
  2. Code Style Checker
  3. Structural Analyzer
pylint --msg-template='{msg_id}:{line:3d},{column}: {obj}: {msg}'

pylint --output-format=colorized --reports=y --score=y ./src/*.py
  • Option to enable/disable certain msg-ids

# References


  1. https://www.reddit.com/r/Python/comments/82hgzm/any_advantages_of_flake8_over_pylint/ ↩︎

  2. https://github.com/microsoft/vscode-python/issues/553 ↩︎