Skip to main content

Run multiple python linters easily

Project description


Run multiple python linters easily.

Installation and Usage

Install with pip:

pip install multilint

Run with:


How it works

I like to keep my projects tidy with a standard set of linters. Running them all turned out to be easier with a wrapper script, which I ended up copy-pasting between them all. This project stops me needing to copy/paste, centralizing running all these neat tools.

In order, it will is these linters are installed, and if so, run them:

  • Run flake8, for code quality
  • Run isort in ‘diff’ mode, for import sorting
  • Run modernize in ‘diff’ mode, for python 2/3 compatibility
  • Run python check, to ensure that your is well configured. This will require docutils, and maybe Pygments if your long_description uses any code highlighting.

If any of them fail, multilint stops and dies with a non-zero exit code. Otherwise it succeeds!

You need to configure the paths that will be linted (by default, only is linted). Put a section in your setup.cfg like:

paths = my_package

Usage with tox

I normally run my tests with tox. An example tox.ini to use multilint to do all your linting would be:

envlist =

deps = -rrequirements.txt
commands = py.test

commands = multilint

commands = multilint

Just put multilint, flake8, etc. in your requirements.txt and they’ll automatically run.


1.0.0 (2016-06-18)

  • First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
multilint-1.0.0-py2.py3-none-any.whl (5.8 kB) Copy SHA256 hash SHA256 Wheel 2.7
multilint-1.0.0.tar.gz (4.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page