您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

tox.ini 1013B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. [tox]
  2. envlist =
  3. py{27,34,35,36}-django{111,20}
  4. py36-djangomaster
  5. lint
  6. sandbox
  7. [testenv]
  8. commands = coverage run --parallel -m pytest {posargs}
  9. extras = test
  10. pip_pre = true
  11. deps =
  12. django111: django>=1.11,<2
  13. django20: django>=2.0,<2.1
  14. [testenv:py36-djangomaster]
  15. commands =
  16. # Can't specify this in deps - see https://github.com/tox-dev/tox/issues/513
  17. pip install https://github.com/django/django/archive/master.tar.gz#egg=django
  18. pytest {posargs}
  19. [testenv:coverage-report]
  20. basepython = python3.6
  21. deps = coverage
  22. skip_install = true
  23. commands =
  24. coverage combine
  25. coverage report
  26. [testenv:lint]
  27. basepython = python3.6
  28. deps =
  29. flake8
  30. isort
  31. commands =
  32. npm install
  33. flake8 src tests setup.py
  34. isort -q --recursive --diff src/ tests/
  35. npm run eslint
  36. django-admin.py compilemessages
  37. [testenv:sandbox]
  38. basepython = python3.5
  39. deps =
  40. -r{toxinidir}/requirements.txt
  41. django>=1.11,<2
  42. whitelist_externals = make
  43. commands =
  44. make build_sandbox