Add support for 'python -m flake8' on Python >= 2.7; issue #85

This commit is contained in:
Florent Xicluna 2014-05-05 22:08:03 +02:00
parent 6c395673e2
commit ed6d0398bc
2 changed files with 5 additions and 0 deletions

View file

@ -6,6 +6,7 @@ CHANGES
- New option ``doctests`` to run Pyflakes checks on doctests too
- New option ``jobs`` to launch multiple jobs in parallel
- Add support for ``python -m flake8`` on Python 2.7 and Python 3
- Fix Git and Mercurial hooks: issues #88, #133, #148 and #149
- Fix crashes with Python 3.4 by upgrading dependencies
- Fix traceback when running tests with Python 2.6

4
flake8/__main__.py Normal file
View file

@ -0,0 +1,4 @@
from flake8.main import main
# python -m flake8 (with Python >= 2.7)
main()