tox.ini
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 11 Dec 2017 16:36:28 +0100
changeset 2913 5205b3490f1c
parent 2889 cfcfe7afe41a
child 2973 e2837a22e676
permissions -rw-r--r--
[seda tree / js] Reimplement rules telling which moves are allowed within the js tree And call the ajax API accordingly. We now allow on top of the earlier "maybeParentOf" mecanism: * to reorder binary / physical data object * to reorder archive units. To do so, we: * turn 'inside' position while moving a node which is already a children node into 'before' + first children as target node, * check if the position is correct, provided that we don't want to mix types: binary objects should be before physical objects which should be before archival units, * call the ajax API by giving it the relative index above mentionned (i.e. index of the node within nodes of the same type).

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

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


[testenv]
sitepackages = True
deps =
  -rdev-requirements.txt
commands = {envpython} -m pytest {posargs:{toxinidir}/test}

[pytest]
python_files = *test_*.py
log_capture = false

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


[testenv:flake8]
skip_install = true
whitelist_externals =
  flake8
deps =
  flake8
commands = flake8 {posargs:{toxinidir}}

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

[flake8]
format = pylint
ignore = W503
max-line-length = 100
max-complexity = 12
exclude = doc/conf.py,cubicweb_seda/uiprops.py,cubicweb_seda/entities/generated.py,cubicweb_seda/views/uicfg.py,cubicweb_seda/schema/seda2.py,cubicweb_seda/migration/*,test/data/*,.tox/*


[testenv:make]
whitelist_externals =
  make
setenv =
    PYTHONHASHSEED = 0
commands = make -C cubicweb_seda {posargs}


[testenv:doc]
changedir = doc
whitelist_externals =
  sphinx-build
deps =
  sphinx
commands = sphinx-build -b html -d {envtmpdir}/doctrees .  {envtmpdir}/html