tox.ini 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # tox configuration - if you change anything here, run this to verify:
  2. # fakeroot -u tox --recreate
  3. [tox]
  4. envlist = py{39,310,311,312}-{none,fuse2,fuse3},docs
  5. minversion = 3.2
  6. requires =
  7. pkgconfig
  8. cython
  9. wheel
  10. setuptools_scm
  11. [testenv]
  12. package = editable-legacy # without this it does not find setup_docs when running under fakeroot
  13. setenv =
  14. fuse2: BORG_FUSE_IMPL=llfuse
  15. fuse3: BORG_FUSE_IMPL=pyfuse3
  16. deps =
  17. fuse2: llfuse
  18. fuse3: pyfuse3
  19. -rrequirements.d/development.txt
  20. commands = py.test -v -n {env:XDISTN:1} -rs --cov=borg --cov-config=.coveragerc --benchmark-skip --pyargs {posargs:borg.testsuite}
  21. # fakeroot -u needs some env vars:
  22. passenv = *
  23. [testenv:.pkg]
  24. passenv = * # needed by tox4, so env vars are visible for building borg
  25. [testenv:ruff]
  26. skip_sdist=true
  27. skip_install=true
  28. changedir =
  29. deps =
  30. ruff
  31. commands = ruff check .
  32. [testenv:mypy]
  33. changedir =
  34. deps =
  35. pytest
  36. mypy
  37. pkgconfig
  38. commands = mypy
  39. [testenv:docs]
  40. changedir = docs
  41. deps =
  42. sphinx
  43. guzzle_sphinx_theme
  44. commands =
  45. sphinx-build -n -v -W --keep-going -b html -d {envtmpdir}/doctrees . {envtmpdir}/html