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