Skip to content
Snippets Groups Projects
tox.ini 600 B
Newer Older
Arthur Lutz's avatar
Arthur Lutz committed
[tox]
envlist = py27,flake8

[tox:jenkins]
envlist = py27,flake8-jenkins

Arthur Lutz's avatar
Arthur Lutz committed
[testenv]
sitepackages = true
deps =
  pytest
  cubicweb-blog
Arthur Lutz's avatar
Arthur Lutz committed
commands =
  {envpython} -m pytest {posargs:test}

[testenv:flake8]
skip_install = true
whitelist_externals =
  flake8
deps =
  flake8
commands = flake8
[testenv:flake8-jenkins]
skip_install = true
whitelist_externals =
  flake8
deps =
  flake8
commands = flake8 --exit-zero --show-source --output-file=code_quality.log {toxinidir}
Arthur Lutz's avatar
Arthur Lutz committed

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