diff --git a/flake8/checker.py b/flake8/checker.py index 0a3a86f..fc2da6b 100644 --- a/flake8/checker.py +++ b/flake8/checker.py @@ -2,8 +2,6 @@ import logging import os -LOG = logging.getLogger(__name__) - try: import multiprocessing except ImportError: @@ -11,6 +9,8 @@ except ImportError: from flake8 import utils +LOG = logging.getLogger(__name__) + class Manager(object): """Manage the parallelism and checker instances for each plugin and file. diff --git a/tox.ini b/tox.ini index 353cb3b..00d6469 100644 --- a/tox.ini +++ b/tox.ini @@ -14,6 +14,7 @@ deps = . commands = {posargs} +# Linters [testenv:flake8] skipsdist = true skip_install = true @@ -30,7 +31,7 @@ skipsdist = true skip_install = true use_develop = false deps = - . + pyflakes pylint commands = pylint flake8 @@ -45,6 +46,19 @@ deps = commands = mypy flake8 +[testenv:linters] +basepython = python3 +skipsdist = true +skip_install = true +use_develop = false +deps = + {[testenv:flake8]deps} + {[testenv:pylint]deps} +commands = + {[testenv:flake8]commands} + {[testenv:pylint]commands} + +# Documentation [testenv:docs] deps = sphinx>=1.3.0 @@ -67,6 +81,7 @@ deps = commands = python setup.py check -r -s +# Flake8 Configuration [flake8] # Ignore some flake8-docstrings errors ignore = D203