-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
94 lines (78 loc) · 1.77 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[tox]
envlist = py{37,38,39,310}
skipsdist = True
[testenv]
commands =
pytest
deps =
-rrequirements.tox.txt
[testenv:codacy]
basepython = python3.10
passenv =
CODECOV_* TOXENV CI TRAVIS TRAVIS_*
DATABASE_URL PRIVATE_KEY QUERIES_RESULTS_PATH
ORDER_* CODACY_*
API_PUBLIC_KEY
API_PRIVATE_KEY
commands =
pytest --cov --cov-report=
sh -c 'if [ ! -z "$CODACY_PROJECT_TOKEN" ]; then coverage xml; fi'
sh -c 'if [ ! -z "$CODACY_PROJECT_TOKEN" ]; then curl -Ls https:\/\/coverage.codacy.com/get.sh > codacy.sh; fi'
sh -c 'if [ ! -z "$CODACY_PROJECT_TOKEN" ]; then chmod +x ./codacy.sh; fi'
sh -c 'if [ ! -z "$CODACY_PROJECT_TOKEN" ]; then HOME=$(pwd) ./codacy.sh report -r coverage.xml; fi'
deps =
-rrequirements.tox.txt
whitelist_externals =
sh
curl
report
[testenv:codecov]
basepython = python3.10
passenv =
CODECOV_* TOXENV CI TRAVIS TRAVIS_*
DATABASE_URL PRIVATE_KEY QUERIES_RESULTS_PATH
ORDER_* CODACY_*
API_PUBLIC_KEY
API_PRIVATE_KEY
commands =
pytest --cov --cov-report=
sh -c 'if [ ! -z "$CODECOV_TOKEN" ]; then codecov; fi'
deps =
-rrequirements.tox.txt
whitelist_externals =
sh
[testenv:black]
basepython = python3.10
deps =
black
commands =
black --check .
[testenv:flake8]
basepython = python3.10
deps =
flake8
commands =
flake8 culqi tests
[testenv:pydocstyle]
basepython = python3.10
whitelist_externals =
sh
commands =
sh -c 'find culqi -name "*.py" -type f | xargs pydocstyle -v'
[testenv:pylint]
basepython = python3.10
deps =
-rrequirements.tox.txt
commands =
pylint --rcfile=.pylintrc culqi
[testenv:mypy]
basepython = python3.10
commands =
mypy culqi
[travis]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
unignore_outcomes = True