2021-07-29 14:00:20 -04:00
|
|
|
[tox]
|
|
|
|
# required because we use pyproject.toml
|
|
|
|
isolated_build = true
|
2021-08-02 12:16:38 -04:00
|
|
|
envlist = py37, py38, py39, lint, checkdeps
|
2021-07-29 14:00:20 -04:00
|
|
|
# only checks python versions installed locally
|
|
|
|
skip_missing_interpreters = true
|
2021-08-02 12:16:38 -04:00
|
|
|
|
|
|
|
[testenv:lint]
|
|
|
|
# lints python code in src and tests
|
|
|
|
basepython = python3.9
|
|
|
|
deps = -rrequirements.txt
|
2021-08-05 15:35:54 -04:00
|
|
|
commands = black data_pipeline
|
|
|
|
flake8 data_pipeline
|
|
|
|
pylint data_pipeline
|
2021-08-02 12:16:38 -04:00
|
|
|
|
|
|
|
[testenv:checkdeps]
|
|
|
|
# checks the dependencies for security vulnerabilities and open source licenses
|
|
|
|
deps = -rrequirements.txt
|
|
|
|
commands = safety check
|
|
|
|
liccheck
|