-
Notifications
You must be signed in to change notification settings - Fork 42
/
tox.ini
49 lines (43 loc) · 816 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
46
47
48
49
[tox]
skip_missing_interpreters = True
envlist =
py38
py37
py36
py35
lint
docs
[flake8]
per-file-ignores =
docs/source/conf.py: E121,E122,E265,E501
examples/*.py: T001
osbrain/__init__.py: E402,F401,I001,I003,I004
inline-quotes = single
multiline-quotes = double
max-complexity = 5
select = C,E,F,I,W,N,B,B902,Q,T
ignore = E203,W503
[isort]
force_single_line = True
[testenv]
deps =
-e.[dev]
commands =
pytest --basetemp={envtmpdir} --cache-clear -v --cov \
{posargs:-n 8}
[testenv:lint]
commands =
black . --diff --check
flake8
[testenv:fixlint]
commands =
black .
isort -y
[testenv:docs]
whitelist_externals =
make
commands =
doc8 README.rst
doc8 docs/source/
make -C docs html SPHINXOPTS="-W -E"
make -C docs linkcheck