summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 42b0e8732cae9a8d16fc80b2950f29ac2ddcb431 (plain)
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
38
39
40
41
42
43
44
45
[tox]
envlist = py37,py38,py39,py310,py311,py311-sphinx,py311-linters

[testenv]
deps=
    PyMySQL
    psycopg2
    psycopg
    pytest
    freezegun
    tms
commands=pytest []

[testenv:py311-sphinx]
deps=
    hg+http://hg.sr.ht/~olly/fresco-sphinx-theme#egg=fresco_sphinx_theme
    sphinx
    sphinxcontrib-programoutput
    {[testenv]deps}
commands=
	sphinx-build -M doctest "{toxinidir}/doc/" "{toxinidir}_build"

[testenv:py311-linters]
deps=
    flake8
    mypy
    types-mock
    types-setuptools
    types-tabulate
    {[testenv]deps}

commands=
    flake8 yoyo
    mypy yoyo []

[flake8]
# E203: Whitespace before ':' (black does this)
# W503: line break before binary operator
ignore =
    E203
    W503
max-line-length = 88

[pytest]
addopts = -Werror::UserWarning