Add unified linters testenv

This commit is contained in:
Ian Cordasco 2016-02-22 21:59:59 -06:00
parent d5a480a464
commit 7addb72615
2 changed files with 18 additions and 3 deletions

View file

@ -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.

17
tox.ini
View file

@ -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