https://github.com/SoftwareHeritage/swh-model
Revision 7dead5df36cf445f7b03e1ed8743d9d9d461f301 authored by Valentin Lorentz on 23 February 2021, 10:19:21 UTC, committed by Valentin Lorentz on 23 February 2021, 12:48:39 UTC
* Quote/unquote path
* Fix line parsing and serializing to properly handle None
* Fix error raised by check_visit/check_anchor
1 parent 172eadb
Raw File
Tip revision: 7dead5df36cf445f7b03e1ed8743d9d9d461f301 authored by Valentin Lorentz on 23 February 2021, 10:19:21 UTC
Fix qualifier parsing and add tests
Tip revision: 7dead5d
tox.ini
[tox]
envlist=black,flake8,mypy,py3

[testenv]
extras =
  testing
deps =
  pytest-cov
commands =
  pytest --cov={envsitepackagesdir}/swh/model \
         --doctest-modules \
         {envsitepackagesdir}/swh/model \
           --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