Skip to content
Commit 73b334a6 authored by Ian Stapleton Cordasco's avatar Ian Stapleton Cordasco
Browse files

Merge branch 'master' into 'master'

Exit Flake8Command.run() cleanly if style checks pass

When using distutils/setuptools, it is common to perform several commands in sequence. For example: `python setup.py flake8 bdist_egg`. When `run()` exits by raising a `SystemExit` exception, it causes the entire chain to break - meaning flake8 cannot be used in combination with any other command.

This change simply alters the behavior to exit normally if there were no style violations found. Otherwise, it will exit immediately, as before, with a non-zero exit code.

See merge request !8
parents 997d291b 236e0f0e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment