mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-10 06:44:18 +00:00
Add unified linters testenv
This commit is contained in:
parent
d5a480a464
commit
7addb72615
2 changed files with 18 additions and 3 deletions
|
|
@ -2,8 +2,6 @@
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
@ -11,6 +9,8 @@ except ImportError:
|
||||||
|
|
||||||
from flake8 import utils
|
from flake8 import utils
|
||||||
|
|
||||||
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class Manager(object):
|
class Manager(object):
|
||||||
"""Manage the parallelism and checker instances for each plugin and file.
|
"""Manage the parallelism and checker instances for each plugin and file.
|
||||||
|
|
|
||||||
17
tox.ini
17
tox.ini
|
|
@ -14,6 +14,7 @@ deps =
|
||||||
.
|
.
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
|
# Linters
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
skipsdist = true
|
skipsdist = true
|
||||||
skip_install = true
|
skip_install = true
|
||||||
|
|
@ -30,7 +31,7 @@ skipsdist = true
|
||||||
skip_install = true
|
skip_install = true
|
||||||
use_develop = false
|
use_develop = false
|
||||||
deps =
|
deps =
|
||||||
.
|
pyflakes
|
||||||
pylint
|
pylint
|
||||||
commands =
|
commands =
|
||||||
pylint flake8
|
pylint flake8
|
||||||
|
|
@ -45,6 +46,19 @@ deps =
|
||||||
commands =
|
commands =
|
||||||
mypy flake8
|
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]
|
[testenv:docs]
|
||||||
deps =
|
deps =
|
||||||
sphinx>=1.3.0
|
sphinx>=1.3.0
|
||||||
|
|
@ -67,6 +81,7 @@ deps =
|
||||||
commands =
|
commands =
|
||||||
python setup.py check -r -s
|
python setup.py check -r -s
|
||||||
|
|
||||||
|
# Flake8 Configuration
|
||||||
[flake8]
|
[flake8]
|
||||||
# Ignore some flake8-docstrings errors
|
# Ignore some flake8-docstrings errors
|
||||||
ignore = D203
|
ignore = D203
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue