-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtox.ini
59 lines (55 loc) · 1.04 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
[tox]
envlist =
pyroma
isort
flake8
tests
requires = tox
[testenv:tests]
commands =
pytest tests/
conda_deps=
rdkit
openbabel
pandas
deps =
pytest
conda_channels=
conda-forge
rdkit
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:isort]
extras = tests
# Needs a full install so isort can determine own/foreign imports.
deps =
isort
commands =
isort setup.py src tests
[testenv:flake8]
skip_install = true
deps =
flake8
flake8-assertive
flake8-bandit
flake8-bugbear
flake8-builtins
flake8-colors
flake8-commas
flake8-comprehensions
flake8-docstrings
# flake8-import-order
flake8-isort
flake8-print
flake8-use-fstring
pep8-naming
pydocstyle
commands =
flake8 src/ setup.py tests/
description = Run the flake8 tool with several plugins (e.g. bandit, docstrings, isort import order) to check code quality.