File: tox.ini

package info (click to toggle)
pytest-qt 4.2.0%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 624 kB
  • sloc: python: 4,098; makefile: 139
file content (36 lines) | stat: -rw-r--r-- 719 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[tox]
envlist = py{37,38,39,310}-{pyqt5,pyside2,pyside6,pyqt6}, linting

[testenv]
deps=
    pytest
    pyside6: pyside6
    pyside2: pyside2
    pyqt5: pyqt5
    pyqt6: pyqt6
commands=
    pytest {posargs}
setenv=
    pyside6: PYTEST_QT_API=pyside6
    pyside2: PYTEST_QT_API=pyside2
    pyqt5: PYTEST_QT_API=pyqt5
    pyqt6: PYTEST_QT_API=pyqt6
    QT_QPA_PLATFORM=offscreen

passenv=DISPLAY XAUTHORITY USER USERNAME COLUMNS

[testenv:linting]
skip_install = True
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure

[testenv:docs]
usedevelop = True
deps =
    sphinx
    sphinx_rtd_theme
commands =
    sphinx-build -W --keep-going -b html docs docs/_build

[flake8]
max-line-length = 120