forked from pypa/bandersnatch
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
45 lines (40 loc) · 941 Bytes
/
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]
envlist = lint,py3
[testenv]
passenv = CI TRAVIS TRAVIS_*
commands =
coverage run -m pytest {posargs}
coverage report -m
coverage html
codecov
deps = -r requirements_test.txt
extras = swift
[testenv:doc_build]
basepython=python3
commands =
{envpython} {envbindir}/sphinx-build -a -W --keep-going -b html docs docs/html
{envpython} {envbindir}/sphinx-build -a -W --keep-going -b linkcheck docs docs/html
changedir = {toxinidir}
deps =
-r requirements_docs.txt
sphinx-rtd-theme
extras = doc_build
passenv = SSH_AUTH_SOCK
setenv =
SPHINX_THEME='pypa'
[testenv:lint]
basepython=python3
skip_install=True
deps = -r requirements_test.txt
commands=
pre-commit run --all-files
; pre-commit run --all-files --show-diff-on-failure
flake8
[isort]
atomic = true
not_skip = __init__.py
line_length = 88
multi_line_output = 3
force_grid_wrap = 0
use_parentheses=True
include_trailing_comma = True