Commit d910514d authored by Henri Cazottes's avatar Henri Cazottes
Browse files

feat(tox): improve cube tox.ini.tmpl by adding black and mypy config

parent fb4a1a0a7576
[tox]
envlist = py3,flake8,check-manifest
envlist = py3,flake8,check-manifest,black
[testenv]
deps =
......@@ -11,7 +11,7 @@ commands =
basepython = python3
skip_install = true
deps =
flake8
flake8 >= 3.6
commands = flake8
[testenv:check-manifest]
......@@ -21,5 +21,28 @@ deps =
commands =
{envpython} -m check_manifest {toxinidir}
[testenv:mypy]
deps =
mypy >= 0.761
commands = mypy --ignore-missing-imports cubicweb_%(cubename)s
[testenv:black]
basepython = python3
skip_install = true
deps =
black >= 19.10b0
commands = black --check .
[testenv:black-run]
basepython = python3
skip_install = true
deps =
black >= 19.10b0
commands = black .
[flake8]
basepython = python3
format = pylint
ignore = W503, E203, E731, E231
max-line-length = 100
exclude = cubicweb_%(cubename)s/migration/*,test/data/*,.tox/*
......@@ -19,6 +19,7 @@ Added
- pyramid: add routes /{eid} and /{etype}/{eid} to return RDF when rdf mimetype in Accept HTTP headers
- entities: simplify rdf generation and add a generic rdf adapter
- web.views: add Link alternate in HTTP response header in HTML view
- Black and Mypy config in tox.ini file of new cube skeleton
Changed
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment