-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
72 lines (66 loc) · 1.74 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[tox]
envlist =
pyroma
flake8
docs
py
[testenv]
basepython = python3.9
commands =
pytest tests/
deps =
rdkit
whitelist_externals =
/bin/cat
/bin/cp
/bin/mkdir
description = Run tests to check code validity.
[testenv:pyroma]
commands =
pyroma .
deps =
pyroma
skip_install = true
description = Make sure setup.cfg is properly written out.
[testenv:flake8]
skip_install = true
deps =
flake8
flake8-bandit
flake8-bugbear
flake8-colors
flake8-commas
flake8-comprehensions
flake8-docstrings
flake8-import-order
flake8-print
flake8-use-fstring
pep8-naming
pydocstyle
commands =
flake8 src/padel_pywrapper/ setup.py
description = Run the flake8 tool with several plugins (bandit, docstrings, import order, pep8 naming) to check code quality.
[testenv:docs]
changedir = docs
extras =
docs
commands =
mkdir -p {envtmpdir}
cp -r source {envtmpdir}/source
sphinx-build -W -b html -d {envtmpdir}/build/doctrees {envtmpdir}/source {envtmpdir}/build/html
sphinx-build -W -b coverage -d {envtmpdir}/build/doctrees {envtmpdir}/source {envtmpdir}/build/coverage
cp -r {envtmpdir}/build build
cat {envtmpdir}/build/coverage/c.txt
cat {envtmpdir}/build/coverage/python.txt
[testenv:docs-windows]
changedir = docs
extras =
docs
commands =
mkdir -p {envtmpdir}
xcopy source {envtmpdir}\source\ /E /H /Y /Q
sphinx-build -W -b html -d {envtmpdir}/build/doctrees {envtmpdir}/source {envtmpdir}/build/html
sphinx-build -W -b coverage -d {envtmpdir}/build/doctrees {envtmpdir}/source {envtmpdir}/build/coverage
xcopy {envtmpdir}\build build\ /E /H /Y /Q
type {envtmpdir}/build/coverage/c.txt
type {envtmpdir}/build/coverage/python.txt