-
Notifications
You must be signed in to change notification settings - Fork 7
/
tox.ini
57 lines (49 loc) · 1.01 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
46
47
48
49
50
51
52
53
54
55
56
57
[tox]
envlist = py39,black,flake8,docs
skip_missing_interpreters = true
[testenv]
deps =
-rtest-requirements.txt
commands=
pytest -vv \
--cov-config .coveragerc --cov=pubtools --cov-report term \
--cov-report xml --cov-report html {posargs}
whitelist_externals = sh
[pytest]
testpaths = tests
[testenv:black]
description = black checks
basepython = python3
deps =
black
commands =
black -l 120 --check --diff pubtools tests
[testenv:black-format]
description = apply black formatting
basepython = python3
deps =
black
commands =
black -l 120 pubtools tests
[testenv:docs]
basepython = python3
deps =
docutils==0.16
Sphinx
sphinx_rtd_theme
sphinx-argparse
paramiko
commands = python setup.py build_sphinx
[testenv:flake8]
description = PEP8 checks
basepython = python3
deps =
flake8
flake8-docstrings
commands =
flake8 pubtools tests
[flake8]
ignore = D100,D104,W503,D102,D101,D107,D401,D202,D400,D205
max-line-length = 120
per-file-ignores =
tests/*:D103