This repository was archived by the owner on Aug 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtox.ini
More file actions
64 lines (52 loc) · 1.24 KB
/
tox.ini
File metadata and controls
64 lines (52 loc) · 1.24 KB
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
[tox]
envlist = py38, flake8
skipsdist = True
[testenv]
# passenv = PYTEST_ADDOPTS
setenv =
SLACK_API_TOKEN=dummy
REDMINE_URL=http://localhost
REDMINE_API_KEY=dummy
HARO_DEBUG=True
SQLALCHEMY_URL=sqlite:///test.db
SQLALCHEMY_ECHO=true
PROJECT_ROOT=/home/haro/beproudbot
deps =
pytest
factory_boy
requests-mock
-rsrc/requirements.txt
commands = pytest {posargs}
[testenv:py38]
commands = pytest {posargs} \
--junitxml={toxinidir}/test-results/pytest.xml
[testenv:flake8]
deps =
flake8
flake8-blind-except
flake8-import-order
flake8_polyfill
mccabe
radon
basepython = python3.8
commands = flake8 src/haro
[testenv:flake8_ci]
deps =
{[testenv:flake8]deps}
flake8_formatter_junit_xml
basepython = python3.8
commands = flake8 src/haro --output-file={toxinidir}/test-results/flake8.xml --format junit-xml
[pytest]
testpaths = tests
# https://docs.pytest.org/en/stable/deprecations.html#junit-family-default-value-change-to-xunit2
junit_family=xunit2
[flake8]
max-line-length = 100
max-complexity = 10
radon-max-cc = 10
import-order-style = google
ignore =
# I100: Import statements are in the wrong order.
I100,
# I101: Imported names are in the wrong order.
I101