forked from dowjones/tokendito
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
executable file
·50 lines (43 loc) · 1.16 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
[tox]
skipsdist = true
envlist = lint, py{37,38,39,310,311}, auth, coverage
[testenv]
deps = -r requirements-dev.txt
passenv = TERM
commands =
coverage erase
pytest --cov=tokendito --cov-append -v -ra -k 'unit' -s tests/ --
pytest --cov=tokendito --cov-append -v -ra -k 'functional and not credentials' -s tests/ --
[testenv:lint]
skip_install = true
commands =
flake8 --
pyroma --min=10 . --
[testenv:auth]
skip_install = true
passenv = TOKENDITO_*
commands =
pytest --cov=tokendito --cov-append -v -rA -k 'functional and (config or credentials)' -s tests/ {posargs}
[testenv:coverage]
skip_install = true
commands =
coverage report
coverage lcov -o lcov.info
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
[flake8]
max-line-length = 100
max-complexity = 8
exclude = .git, __pycache__, .tox, build/, .venv/, venv/
extend-ignore = E203, W503
import-order-style = google
application-import-names = flake8
format = %(cyan)s%(path)s%(reset)s:%(bold)s%(yellow)s%(row)d%(reset)s:%(bold)s%(green)s%(col)d%(reset)s: %(bold)s%(red)s%(code)s%(reset)s %(text)s
[pytest]
env =
PIP_DISABLE_PIP_VERSION_CHECK=1