forked from djpugh/fastapi_aad_auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
58 lines (51 loc) · 1.8 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
[tox]
envlist = {test}
[testenv]
deps =
-rrequirements.txt
develop,testapp: uvicorn
lint,develop: flake8
lint,develop: pipenv
lint,develop: flake8-import-order
lint,develop: flake8-eradicate
lint,develop: flake8-docstrings
test,develop: pytest
test,develop: pytest-cov
test,develop: tox
cq,develop: pylint
types,develop: mypy
types,develop: lxml
security,develop: bandit
docs,develop: sphinx
docs,develop: sphinx_material
docs,develop: sphinx_github_changelog
build,develop: wheel
commands =
lint: flake8 src/
lint: pipenv check
test: pytest {posargs: -rs tests/unit --log-level=WARNING --cov=fastapi_aad_auth --cov-report xml:{toxinidir}/reports/{envname}-coverage.xml}
docs: python -m sphinx -b html -a {toxinidir}/docs/source {toxinidir}/docs/html
build: python setup.py sdist --format=zip
build: python setup.py sdist --format=gztar
build: python setup.py bdist_wheel
security: python -c "import os; a = 1 if os.path.exists('reports') else os.makedirs('reports')"
security: bandit -r src/ --format xml --output reports/security-results.xml -x *_version.py
security: bandit -r src/ -x *_version.py
types: python -c "import os; a = 1 if os.path.exists('reports') else os.makedirs('reports')"
types: mypy -p fastapi_aad_auth --linecoverage-report reports --junit-xml reports/mypy.xml --cobertura-xml-report test-reports
passenv =
docs: SPHINX_GITHUB_CHANGELOG_TOKEN
[testenv:setup_version]
deps = versioneer
commands = versioneer install
skip_install=True
[testenv:develop]
skip_install = True
envdir = {toxinidir}/.venv
commands = python setup.py develop
[testenv:testapp]
skip_install = True
envdir = {toxinidir}/.venv
commands =
python setup.py develop
python tests/testapp/server.py