https://forge.softwareheritage.org/source/swh-scheduler.git
Revision 9e5b17faa89bd4cdcf42670b67dee00f05a64e10 authored by Antoine R. Dumont (@ardumont) on 24 November 2020, 13:03:17 UTC, committed by Antoine R. Dumont (@ardumont) on 24 November 2020, 13:10:31 UTC
As it's exposed through the swh.scheduler.pytest_plugin itself used by other
swh modules, this needs to be declared to avoid other swh module build
failures.

Related to T2746
1 parent 49ed819
Raw File
Tip revision: 9e5b17faa89bd4cdcf42670b67dee00f05a64e10 authored by Antoine R. Dumont (@ardumont) on 24 November 2020, 13:03:17 UTC
conftest: Reference swh.core.db.pytest_plugin
Tip revision: 9e5b17f
tox.ini
[tox]
envlist=black,flake8,mypy,py3

[testenv]
extras =
  testing
deps =
  pytest-cov
  dev: ipdb
setenv =
  LC_ALL=C.UTF-8
  LC_CTYPE=C.UTF-8
  LANG=C.UTF-8
commands =
      pytest --doctest-modules \
  !slow: --hypothesis-profile=fast \
  slow:  --hypothesis-profile=slow \
         --cov={envsitepackagesdir}/swh/scheduler \
         {envsitepackagesdir}/swh/scheduler \
         --cov-branch {posargs}

[testenv:black]
skip_install = true
deps =
  black==19.10b0
commands =
  {envpython} -m black --check swh

[testenv:flake8]
skip_install = true
deps =
  flake8
commands =
  {envpython} -m flake8

[testenv:mypy]
extras =
  testing
deps =
  mypy
commands =
  mypy swh
back to top