summaryrefslogtreecommitdiff
path: root/tox.ini
blob: f8a7ffd4cc7ef3ce4c2dcc1dad1ab4d16b6aa2b0 (plain)
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 = py35, py36, pep8, docs
skipsdist = True

[testenv]
deps =
  -r{toxinidir}/requirements.txt
basepython=python3
whitelist_externals =
  find
commands =
  find . -type f -name "*.pyc" -delete
  pytest \
    {posargs}

[testenv:fmt]
deps = yapf
commands =
    yapf --style=pep8 -ir {toxinidir}/spyglass {toxinidir}/tests

[testenv:pep8]
deps = 
    yapf
    flake8
commands =
    #yapf --style=.style.yapf -rd {toxinidir}/spyglass
    flake8 {toxinidir}/spyglass

[testenv:bandit]
deps =
    bandit
commands = bandit -r spyglass -n 5

[flake8]
ignore = E125,E251,W503

[testenv:docs]
basepython = python3
deps =
    -r{toxinidir}/requirements.txt
    -r{toxinidir}/doc/requirements.txt
commands =
    rm -rf doc/build
    sphinx-build -b html doc/source doc/build -n -W -v
whitelist_externals = rm