-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
56 lines (45 loc) · 960 Bytes
/
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
# content of: tox.ini , put in same dir as setup.py
[tox]
envlist = py, blacken
[pytest]
addopts = --durations=10
testpaths = tests
# python_paths = datafactory tests
django_find_project = false
[testenv]
commands =
py.test
deps =
pytest-cov
[testenv:blacken]
deps = black
commands =
black .
[testenv:black-check]
deps = black
commands =
black . --check
[testenv:flake8]
deps =
flake8
flake8-blind-except
flake8-docstrings
flake8-import-order
mccabe
radon
commands = flake8 .
[testenv:cov]
setenv =
PYTHONDONTWRITEBYTECODE = 1
commands = py.test {posargs} \
--junitxml={toxinidir}/.junit.xml \
--cov=datafactory
[flake8]
ignore = D100, D101, D102, D103, D104, D105, D400, D403, I100, I101
exclude = datafactory/__init__.py, datafactory/compat.py, tests/, build/, .tox/, venv/
max-line-length = 120
import-order-style = google
[testenv:codecov]
passenv = TOXENV CI CODECOV_*
deps = codecov
commands = codecov