Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.07 KB

pylint.md

File metadata and controls

42 lines (28 loc) · 1.07 KB

What is pylint

Pylint is a static code analyser for Python 2 or 3. Pylint analyses your code without actually running it. It checks for errors, enforces a coding standard, looks for code smells, and can make suggestions about how the code could be refactored. -- pylint on pypi.org

Install

  1. See pylint on pypi.org

.pylintrc

  1. ✏️ Identify the file to be inspected. Example:

    export SENZING_PYTHON=redoer.py
  2. List all type of errors seen in the file. Example:

    pylint --msg-template="{symbol}" ${SENZING_PYTHON} | sort | uniq

Uses

Github workflow

  1. See .github/workflows/pylint.yaml

References

  1. ReadTheDocs
  2. Linting Python in Visual Studio Code