[go: up one dir, main page]

File: tox.ini

package info (click to toggle)
luma.core 2.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,040 kB
  • sloc: python: 6,186; makefile: 204
file content (37 lines) | stat: -rw-r--r-- 756 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
37
# Copyright (c) 2017-2024 Richard Hull and contributors
# See LICENSE.rst for details.

[tox]
envlist = py{37,38,39,310,311,312,313},qa,doc
skip_missing_interpreters = True

[testenv]
usedevelop = true
allowlist_externals =
    py.test
    coverage
setenv =
    PYTHONDEVMODE=1
commands =
    coverage erase
    py.test --cov=luma {posargs}
    coverage html
deps = .[test]

[testenv:watch]  # use ptw (=pytestwatch) to run tests when files change
commands =
    ptw -v {posargs}

[testenv:qa]
commands =
    flake8
    rstcheck README.rst CHANGES.rst CONTRIBUTING.rst
deps = .[qa]

[testenv:doc]
commands =
    make linkcheck
    sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
changedir = doc
allowlist_externals = make
deps = .[docs]