forked from Mergifyio/mergify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
70 lines (61 loc) · 1.63 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
[tox]
envlist = py37,pep8
skipsdist = true
[testenv]
setenv =
MERGIFYENGINE_TEST_SETTINGS=fake.env
basepython = python3
usedevelop = true
extras = test
commands =
pifpaf run -g MERGIFYENGINE_STORAGE_URL redis --port 6363 -- pifpaf run -g MERGIFYENGINE_CELERY_BROKER_URL redis --port 6364 -- pytest -v --pyargs mergify_engine {posargs}
[testenv:py37]
basepython = python3.7
[testenv:cover]
commands =
pifpaf run -g MERGIFYENGINE_STORAGE_URL redis --port 6363 -- pifpaf run -g MERGIFYENGINE_CELERY_BROKER_URL redis --port 6364 -- pytest -v --pyargs mergify_engine --cov=mergify_engine --cov-config .coveragerc {posargs}
[testenv:record]
setenv =
MERGIFYENGINE_RECORD=1
MERGIFYENGINE_TEST_SETTINGS=test.env
whitelist_externals =
git
commands =
{[testenv]commands}
git add zfixtures/cassettes/
[testenv:test]
deps = uwsgi
setenv =
MERGIFYENGINE_TEST_SETTINGS=test.env
whitelist_externals =
bash
commands =
pifpaf run redis -- bash run-tests.sh {posargs}
[testenv:venv]
deps = .
commands = bash -c "{posargs}"
whitelist_externals = bash
[testenv:pep8]
deps = flake8
flake8-import-order
flake8-blind-except
flake8-builtins
flake8-docstrings
flake8-rst-docstrings
flake8-logging-format
pydocstyle<4 # flake8-docstrings not yet compatible with >=4
commands = flake8
[testenv:docs]
extras = docs
whitelist_externals =
rm
echo
commands =
rm -rf doc/build
sphinx-build -W -b html doc/source doc/build
[flake8]
exclude = .tox,.eggs,doc
show-source = true
ignore = D100,D101,D102,D103,D104,D105,D107,G200,G201,W504
application-import-names = mergify_engine
enable-extensions=G