https://github.com/SoftwareHeritage/swh-model
Raw File
Tip revision: 13c5695b7293c8a8478ab53018a6278f4ac6c31e authored by Jenkins for Software Heritage on 13 April 2021, 13:31:22 UTC
Updated debian changelog for version 2.4.0
Tip revision: 13c5695
tox.ini
[tox]
envlist=black,flake8,mypy,py3-{minimal,full}

[testenv]
extras =
  full: testing
  minimal: testing-minimal
deps =
  pytest-cov
commands =
  pytest --cov={envsitepackagesdir}/swh/model \
         --doctest-modules \
  full:    {envsitepackagesdir}/swh/model \
  minimal: {envsitepackagesdir}/swh/model/tests/test_cli.py -m 'not requires_optional_deps' \
         --cov-branch {posargs}

[testenv:py3]
skip_install = true
deps = tox
commands =
  tox -e py3-full -- {posargs}
  tox -e py3-minimal -- {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