2015-07-13 16:45:49 +00:00
|
|
|
# tox configuration - if you change anything here, run this to verify:
|
|
|
|
# fakeroot -u tox --recreate
|
|
|
|
|
2013-06-24 11:53:02 +00:00
|
|
|
[tox]
|
2024-08-28 01:34:46 +00:00
|
|
|
envlist = py{39,310,311,312,313}-{none,fuse2,fuse3},docs
|
2021-05-02 15:51:12 +00:00
|
|
|
minversion = 3.2
|
|
|
|
requires =
|
|
|
|
pkgconfig
|
|
|
|
cython
|
|
|
|
wheel
|
|
|
|
setuptools_scm
|
2023-08-26 11:36:10 +00:00
|
|
|
|
2013-06-24 11:53:02 +00:00
|
|
|
[testenv]
|
2023-05-16 23:01:05 +00:00
|
|
|
package = editable-legacy # without this it does not find setup_docs when running under fakeroot
|
2021-05-02 15:51:12 +00:00
|
|
|
setenv =
|
|
|
|
fuse2: BORG_FUSE_IMPL=llfuse
|
|
|
|
fuse3: BORG_FUSE_IMPL=pyfuse3
|
2015-10-01 04:51:19 +00:00
|
|
|
deps =
|
2021-05-02 15:51:12 +00:00
|
|
|
fuse2: llfuse
|
|
|
|
fuse3: pyfuse3
|
2020-10-10 21:12:47 +00:00
|
|
|
-rrequirements.d/development.txt
|
2019-04-03 15:12:06 +00:00
|
|
|
commands = py.test -v -n {env:XDISTN:1} -rs --cov=borg --cov-config=.coveragerc --benchmark-skip --pyargs {posargs:borg.testsuite}
|
2015-07-13 16:45:49 +00:00
|
|
|
# fakeroot -u needs some env vars:
|
|
|
|
passenv = *
|
2016-01-30 21:01:27 +00:00
|
|
|
|
2020-10-10 21:12:47 +00:00
|
|
|
|
2022-12-10 16:32:23 +00:00
|
|
|
[testenv:.pkg]
|
|
|
|
passenv = * # needed by tox4, so env vars are visible for building borg
|
|
|
|
|
|
|
|
|
2023-09-04 20:15:42 +00:00
|
|
|
[testenv:ruff]
|
2021-05-02 15:51:12 +00:00
|
|
|
skip_sdist=true
|
|
|
|
skip_install=true
|
2016-01-30 21:01:27 +00:00
|
|
|
changedir =
|
2019-03-13 04:40:25 +00:00
|
|
|
deps =
|
2023-09-04 20:15:42 +00:00
|
|
|
ruff
|
|
|
|
commands = ruff check .
|
2022-07-15 10:44:56 +00:00
|
|
|
|
|
|
|
[testenv:mypy]
|
|
|
|
changedir =
|
|
|
|
deps =
|
|
|
|
pytest
|
|
|
|
mypy
|
|
|
|
pkgconfig
|
2024-08-04 13:57:37 +00:00
|
|
|
commands = mypy --ignore-missing-imports
|
2023-08-26 11:36:10 +00:00
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
changedir = docs
|
|
|
|
deps =
|
|
|
|
sphinx
|
|
|
|
guzzle_sphinx_theme
|
|
|
|
commands =
|
|
|
|
sphinx-build -n -v -W --keep-going -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|