OLD | NEW |
1 [tox] | 1 [tox] |
2 envlist = py27,py35,py36,pypy,flake8 | 2 envlist = py27,py35,py36,pypy,flake8 |
3 | 3 |
4 [flake8] | |
5 ignore = D107, N801, W503 | |
6 | |
7 [testenv] | 4 [testenv] |
8 deps = | 5 deps = |
9 pytest-cov | 6 pytest-cov |
10 mock | 7 mock |
11 commands = | 8 commands = |
12 # For accurate coverage reports, we write a `pragma: no py{}` instruction | 9 # For accurate coverage reports, we write a `pragma: no py{}` instruction |
13 # containing the current Python version to a .coveragerc file | 10 # containing the current Python version to a .coveragerc file |
14 python -c 'import sys; open(".coveragerc", "w").write("[report]\nexclude_lin
es = pragma: no py\{\} cover".format(sys.version_info[0]))' | 11 python -c 'import sys; open(".coveragerc", "w").write("[report]\nexclude_lin
es = pragma: no py\{\} cover".format(sys.version_info[0]))' |
15 py.test --cov=abp --cov-report=term-missing --cov-fail-under=100 tests | 12 py.test --cov=abp --cov-report=term-missing --cov-fail-under=100 tests |
16 | 13 |
17 # We have to install our package in development mode so that pytest-cov can | 14 # We have to install our package in development mode so that pytest-cov can |
18 # find the .coverage and .coveragerc files. | 15 # find the .coverage and .coveragerc files. |
19 usedevelop = true | 16 usedevelop = true |
20 | 17 |
21 [testenv:flake8] | 18 [testenv:flake8] |
22 basepython = python3 | 19 basepython = python3 |
23 skip_install = true | 20 skip_install = true |
24 deps = | 21 deps = |
25 flake8 | |
26 flake8-docstrings | |
27 flake8-commas | |
28 pep8-naming | |
29 hg+https://hg.adblockplus.org/codingtools#egg=flake8-eyeo&subdirectory=flake
8-eyeo | 22 hg+https://hg.adblockplus.org/codingtools#egg=flake8-eyeo&subdirectory=flake
8-eyeo |
30 commands = | 23 commands = |
31 flake8 abp | 24 flake8 |
32 flake8 --extend-ignore=D1 tests setup.py | |
OLD | NEW |