-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathtox.ini
75 lines (68 loc) · 1.38 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[tox]
envlist = py37, py38, build, flake8, black
skipsdist = true
skip_missing_interpreters = true
isolated_build = true
ignore_errors = true
minversion = 4.0.0a10
[testenv]
passenv =
CI
TRAVIS
TRAVIS_*
deps =
pytest-cov
codecov
commands =
pip install -e .
pytest --cov-report term-missing --cov=grid src/grid
codecov
[testenv:build]
basepython = python3
skip_install = true
deps =
pytest
wheel
setuptools
commands =
python setup.py -q sdist bdist_wheel
pip install .
pytest --pyargs grid
[testenv:flake8]
basepython = python3
skip_install = true
deps =
flake8
flake8-docstrings >= 0.2.7
flake8-import-order >= 0.9
pydocstyle == 3.0.0
flake8-colors
commands =
flake8 --version
flake8 src/grid setup.py
[testenv:black]
basepython = python3
skip_install = true
deps =
black
commands =
black -v --check --diff src/grid
[flake8]
max-line-length = 100
ignore =
# Not being able to use lambda functions
E731
# false positive error around ":" for slicing
E203
# numpy stype docstring ignores
D107, D203, D212, D213, D402, D413
# Not pep8 for operator
W503
format =
${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s
[coverage:run]
omit = */test*
[gh]
python =
3.7 = py37, build, flake8, black
3.8 = py38