File: tox.ini

package info (click to toggle)
pyct 0.4.7a3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 164 kB
  • sloc: python: 729; makefile: 3
file content (56 lines) | stat: -rw-r--r-- 1,385 bytes parent folder | download
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
[tox]
envlist = {py27,py37}-{flakes,unit,cmd_examples,build_examples,all}-{default}-{dev,pkg}
build = wheel

[_flakes]
commands = flake8
deps = .[tests]

[_cmd_examples]
commands = pytest pyct
deps = .[tests,cmd]

[_build_examples]
# TODO: not much of a test yet...
commands = python -c "from pyct.build import examples, get_setup_version"
deps = .[tests]

[_all]
commands = {[_flakes]commands}
           {[_unit]commands}
           {[_cmd_examples]commands}
           {[_build_examples]commands}
deps = .[examples, tests]

[_unit]
description = Run unit tests
deps = .[tests]
commands = pytest pyct
           pyct --help
           pyct --version
           pyct report --help           
           pyct report pyct python

[testenv]
changedir = {envtmpdir}

commands = unit: {[_unit]commands}
           cmd_examples: {[_cmd_examples]commands}
           build_examples: {[_build_examples]commands}
           flakes: {[_flakes]commands}
           all: {[_all]commands}

deps = unit: {[_unit]deps}
       cmd_examples: {[_cmd_examples]deps}
       build_examples: {[_build_examples]deps}
       flakes: {[_flakes]deps}
       all: {[_all]deps}

[pytest]
addopts = -v --pyargs
norecursedirs = doc .git dist build _build .ipynb_checkpoints apps

[flake8]
ignore = E,W
include = *.py
exclude = .git,__pycache__,.tox,.eggs,*.egg,doc,dist,build,_build,.ipynb_checkpoints,run_test.py