mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-21 07:58:04 +00:00
77 lines
2.0 KiB
INI
77 lines
2.0 KiB
INI
[tox]
|
|
envlist = py34, py35, py36, py37, pypy, pylint
|
|
skip_missing_interpreters = true
|
|
|
|
[testenv:pylint]
|
|
deps =
|
|
git+https://github.com/pycqa/astroid@master
|
|
isort
|
|
|
|
commands = pylint -rn --rcfile={toxinidir}/pylintrc --load-plugins=pylint.extensions.docparams, pylint.extensions.mccabe {envsitepackagesdir}/pylint
|
|
|
|
[testenv]
|
|
deps =
|
|
https://github.com/PyCQA/astroid/tarball/master#egg=astroid-master-2.0
|
|
coverage
|
|
isort
|
|
mccabe
|
|
pytest
|
|
pytest-xdist
|
|
pyenchant
|
|
|
|
setenv =
|
|
COVERAGE_FILE = {toxinidir}/.coverage.{envname}
|
|
|
|
commands =
|
|
python -Wi {envsitepackagesdir}/coverage run -m pytest {envsitepackagesdir}/pylint/test/ {posargs:}
|
|
|
|
; Transform absolute path to relative path
|
|
; for compatibility with coveralls.io and fix 'source not available' error.
|
|
; If you can find a cleaner way is welcome
|
|
python -c "import os;cov_strip_abspath = open(os.environ['COVERAGE_FILE'], 'r').read().replace('.tox' + os.sep + os.path.relpath('{envsitepackagesdir}', '{toxworkdir}') + os.sep, '');open(os.environ['COVERAGE_FILE'], 'w').write(cov_strip_abspath)"
|
|
changedir = {toxworkdir}
|
|
|
|
[testenv:coveralls]
|
|
setenv =
|
|
COVERAGE_FILE = {toxinidir}/.coverage
|
|
passenv =
|
|
*
|
|
deps =
|
|
coverage
|
|
coveralls
|
|
skip_install = true
|
|
commands =
|
|
python {envsitepackagesdir}/coverage combine
|
|
python {envsitepackagesdir}/coverage report --rcfile={toxinidir}/.coveragerc -m
|
|
- coveralls --rcfile={toxinidir}/.coveragerc
|
|
changedir = {toxinidir}
|
|
|
|
[testenv:coverage-erase]
|
|
setenv =
|
|
COVERAGE_FILE = {toxinidir}/.coverage
|
|
deps =
|
|
coverage
|
|
skip_install = true
|
|
commands =
|
|
python {envsitepackagesdir}/coverage erase
|
|
changedir = {toxinidir}
|
|
|
|
[testenv:docs]
|
|
skipsdist = True
|
|
usedevelop = True
|
|
changedir = doc/
|
|
whitelist_externals = rm
|
|
deps =
|
|
sphinx
|
|
python-docs-theme
|
|
restructuredtext_lint
|
|
|
|
commands =
|
|
pip install python_docs_theme
|
|
rm -f features.rst
|
|
python ./exts/pylint_features.py
|
|
rm -f extensions.rst
|
|
python ./exts/pylint_extensions.py
|
|
sphinx-build -b html -d _build/doctrees . _build/html
|
|
python ./check_rst_files.py
|