generated from widal001/python-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
31 lines (27 loc) · 809 Bytes
/
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
[tox]
# tests 3.7, 3.8, 3.9 and runs each of the testenvs below
envlist = py37, py38, py39, lint, checkdeps, pytest, coverage
skip_missing_interpreters = true
isolated_build = true
[testenv:lint]
# lints python code in src and tests
basepython = python3.9
deps = -rrequirements.txt
commands = black src tests
pylint src tests
flake8 src tests
[testenv:checkdeps]
# checks the dependencies for security vulnerabilities and open source licenses
deps = -rrequirements.txt
commands = safety check
liccheck
[testenv:pytest]
# runs unit and integration tests
deps = -rrequirements.txt
commands = pytest --cov=pyspark_examples
[testenv:coverage]
# runs test coverage and fails below 90% coverage
skip_install = true
deps = coverage
commands =
coverage report --fail-under=90