Creates a "polysquarelint" command for setuptools which runs several common python static analysis tools
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
polysquare_setuptools_lint
test
.travis.yml
DICTIONARY
LICENCE
MANIFEST.in
README.md
appveyor.yml
requirements.txt
setup.py

README.md

Polysquare Setuptools Linter

This module provides a lint command to run several well-known python static analysis tools, including prospector, flake8, pyroma and pylint.

Status

Travis CI (Ubuntu) AppVeyor (Windows) Coverage PyPI Licence
Travis AppVeyor Coveralls PyPIVersionPyPIPythons License

Usage

Options for 'PolysquareLintCommand' command:
  --suppress-codes   Error codes to suppress
  --exclusions       Glob expressions of files to exclude
  --stamp-directory  Where to store stamps of completed jobs

Pass --exclude=PAT1,PAT2 to exclude glob-expression patterns PAT1 and PAT2 from the list of files to be linted.

Pass --suppress-codes=CODE1,CODE2 to suppress reported codes globally.

All linter errors can be suppressed inline by using suppress(CODE1,CODE2) as either a comment at the end of the line producing the error or the line directly above it.