Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: tox.ini

Issue 29968569: Issue 4014 - Publish python-abp on PyPI (Closed) Base URL: https://hg.adblockplus.org/python-abp/
Patch Set: Add MANIFEST.in Created Dec. 29, 2018, 2:01 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« tests/test_fs_source.py ('K') | « tests/test_web_source.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 [tox] 1 [tox]
2 envlist = py27,py35,py36,pypy,coverage,flake8 2 envlist = py27,py35,py36,pypy,flake8
3 3
4 [flake8] 4 [flake8]
5 ignore = D107, N801, W503 5 ignore = D107, N801, W503
6 6
7 [testenv] 7 [testenv]
8 deps = 8 deps =
9 pytest
10 mock
11 commands =
12 py.test tests
13
14 [testenv:coverage]
15 deps =
16 pytest-cov 9 pytest-cov
17 mock 10 mock
18 commands = 11 commands =
19 py.test --cov=abp --cov-report=term-missing tests 12 python -c 'import sys; open(".coveragerc", "w").write("[report]\nexclude_lin es = pragma: no py\{\} cover".format(sys.version_info[0]))'
Vasily Kuznetsov 2019/01/02 18:32:28 This is clever but I wonder if it would look less
Sebastian Noack 2019/01/02 20:42:31 There are following problems with this approach:
rhowell 2019/01/03 04:42:28 I briefly tried using tox environment variables, b
13 py.test --cov=abp --cov-report=term-missing --cov-fail-under=100 tests
20 14
21 # We have to install our package in development mode 15 # We have to install our package in development mode so that pytest-cov can
22 # so that pytest-cov can find the .coverage file. 16 # find the .coverage and .coveragerc files.
23 usedevelop = true 17 usedevelop = true
24 18
25 [testenv:flake8] 19 [testenv:flake8]
26 basepython = python3 20 basepython = python3
27 skip_install = true 21 skip_install = true
28 deps = 22 deps =
29 flake8 23 flake8
30 flake8-docstrings 24 flake8-docstrings
31 flake8-commas 25 flake8-commas
32 pep8-naming 26 pep8-naming
33 hg+https://hg.adblockplus.org/codingtools#egg=flake8-eyeo&subdirectory=flake 8-eyeo 27 hg+https://hg.adblockplus.org/codingtools#egg=flake8-eyeo&subdirectory=flake 8-eyeo
34 commands = 28 commands =
35 flake8 abp 29 flake8 abp
36 flake8 --extend-ignore=D1 tests setup.py 30 flake8 --extend-ignore=D1 tests setup.py
OLDNEW
« tests/test_fs_source.py ('K') | « tests/test_web_source.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld