-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathtox.ini
45 lines (37 loc) · 1.19 KB
/
tox.ini
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 (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = lint,doc8
[testenv]
usedevelop = False
install_command = pip install {opts} {packages}
deps =
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
sitepackages = False
allowlist_externals =
rm
make
[doc8]
deps = sphinx
ignore-path = */build*
extentsions = .rst,.txt
max-line-length = 79
[testenv:doc8]
commands =
sphinx-build -W -d build/doctrees -b html source build/html
[testenv:html]
commands =
sphinx-build -W -d build/doctrees -b html source build/html
[flake8]
# H106: Don't put vim configuration in source files.
# H203: Use assertIs(Not)None to check for None.
# H204: Use assert(Not)Equal to check for equality.
# H205: Use assert(Greater|Less)(Equal) for comparison.
# H210: Require 'autospec', 'spec', or 'spec_set' in mock.patch/mock.patch.object calls
# H904: Delay string interpolations at logging calls.
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools
show-source = True
enable-extentsions = H203,H106