mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 05:26:53 +00:00
Add unified linters testenv
This commit is contained in:
parent
d5a480a464
commit
7addb72615
2 changed files with 18 additions and 3 deletions
17
tox.ini
17
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue