Newer
Older
# rdiffweb, A web interface to rdiff-backup repositories
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
[tox]
envlist = py3,doc,flake8,black,isort,djlint,buster,bullseye,bookworm,sqlalchemy2
passenv = RDIFFWEB_TEST_DATABASE_URI
pytest
coverage
pytest-cov
psycopg2-binary
#cherrypy<9 depends on nosetest
buster: nose
buster: apscheduler==3.5.3
buster: cherrypy==8.9.1
buster: configargparse==0.13.0
buster: distro==1.3.0
buster: humanfriendly==4.18
buster: Jinja2==2.10
buster: ldap3==2.4.1
buster: MarkupSafe==1.1.0
buster: psutil==5.7.2
buster: sqlalchemy==1.2.18
buster: WTForms==2.2.1
bullseye: apscheduler==3.7.0
bullseye: cherrypy==18.6.1
bullseye: configargparse==1.2.3
bullseye: distro==1.5.0
bullseye: humanfriendly==9.1
bullseye: Jinja2==2.11.3
bullseye: ldap3==2.8.1
bullseye: MarkupSafe==1.1.1
bullseye: psutil==5.8.0
bullseye: sqlalchemy==1.3.22
bullseye: WTForms==2.2.1
bookworm: apscheduler==3.9.1
bookworm: MarkupSafe==2.1.2
bookworm: psutil==5.9.4
bookworm: sqlalchemy==1.4.46
# Fix version of sqlalchemy2
sqlalchemy2: sqlalchemy>=2,<3
commands=
pytest -v --debug --override-ini junit_family=xunit1 --junit-xml=xunit-{envname}.xml --cov=rdiffweb --cov-report xml:coverage-{envname}.xml
[testenv:selenium]
allowlist_externals=
/usr/bin/xvfb-run
extras = test
commands =
xvfb-run pytest -v --debug --ignore=debian
[testenv:doc]
deps =
sphinx
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees doc {envtmpdir}/html
skip_install = true
[testenv:black]
commands = black --check --diff setup.py rdiffweb
skip_install = true
deps = djlint==1.19.2
allowlist_externals = sh
commands = sh -c 'djlint --check rdiffweb/templates/*.html rdiffweb/templates/**/*.html'
skip_install = true
[testenv:isort]
deps = isort>=5.0.1
commands = isort --check --diff setup.py rdiffweb
skip_install = true
Patrik Dufresne
committed
# whitespace before ':'
E203
# line too long (86 > 79 characters)
E501
# line break before binary operator
W503
# ambiguous variable name 'I'
E741
filename =
*.py
setup.py
max-complexity = 20
[isort]
profile = black
line_length = 120