forked from eLearningHub/huggingfastapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
66 lines (60 loc) · 1.18 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
[tox]
envlist = flake8,py38,bandit
[testenv]
deps =
coverage
pytest
pytest-cov
pycodestyle>=2.0
commands =
coverage erase
pip install -r {toxinidir}/requirements.txt
pytest --cov=tests --cov=huggingfastapi --cov-report=term-missing --cov-config=setup.cfg
coverage report
coverage html -d htmlcov-{envname}
[testenv:autopep8]
basepython = python3
skip_install = true
deps =
autopep8>=1.5
commands =
autopep8 --in-place --aggressive -r huggingfastapi/
[testenv:flake8]
basepython = python3
skip_install = true
deps =
flake8
flake8-bugbear
flake8-colors
flake8-typing-imports>=1.1
pep8-naming
commands =
flake8 huggingfastapi/ tests/ setup.py
[testenv:bandit]
basepython = python3
deps =
bandit
commands =
bandit -r huggingfastapi/
[flake8]
exclude =
.tox,
.git,
__pycache__,
docs/source/conf.py,
build,
dist,
tests/fixtures/*,
*.pyc,
*.egg-info,
.cache,
.eggs
max-complexity = 10
import-order-style = google
application-import-names = flake8
max-line-length = 120
ignore =
B008,
N803,
N806,
E126