https://github.com/SoftwareHeritage/swh-model
Raw File
Tip revision: a7d9aca2b0df15c64d4e42e263422df9908ae42b authored by David Douard on 01 July 2020, 13:13:59 UTC
Extract the extra_headers from metadata on the Revision model class
Tip revision: a7d9aca
tox.ini
[tox]
envlist=black,flake8,mypy,py3

[testenv]
extras =
  testing
deps =
  pytest-cov
commands =
  pytest --cov={envsitepackagesdir}/swh/model \
         {envsitepackagesdir}/swh/model \
           --cov-branch {posargs}

[testenv:black]
skip_install = true
deps =
  black
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