tox.ini
author Philippe Pepiot <philippe.pepiot@logilab.fr>
Fri, 22 Nov 2019 14:13:16 +0100
changeset 391 8059a2b88d3e
parent 384 d6f50d7c648b
permissions -rw-r--r--
Drop packaging from sdist and add check-manifest

[tox]
envlist = py27, py3, flake8, check-manifest

[testenv]
deps =
  pytest
  -rdev-requirements.txt
commands =
  {envpython} -m pytest {posargs}

[pytest]
python_files = *test_*.py
testpaths = test
addopts = -r fEs

[testenv:flake8]
basepython = python3
skip_install = true
deps =
  flake8
commands = {envpython} -m flake8 {toxinidir} {posargs}

[flake8]
max-line-length = 100
ignore = E731,W503
exclude = cubicweb_blog/__pkginfo__.py,cubicweb_blog/migration/*,test/data/*,.tox/*

[testenv:flake8-jenkins]
skip_install = true
deps =
  flake8
commands = flake8 --exit-zero --show-source --output-file=code_quality.log {toxinidir}

[testenv:check-manifest]
skip_install = true
skipsdist = true
deps =
  check-manifest
commands =
  {envpython} -m check_manifest