2021-07-29 14:00:20 -04:00
|
|
|
[tox]
|
|
|
|
# required because we use pyproject.toml
|
|
|
|
isolated_build = true
|
2022-02-03 17:05:51 -05:00
|
|
|
envlist = py38, py39, lint, checkdeps, pytest
|
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]
|
2022-02-08 19:05:32 -05:00
|
|
|
deps = pytest
|
2021-08-02 12:16:38 -04:00
|
|
|
# lints python code in src and tests
|
2021-08-05 15:35:54 -04:00
|
|
|
commands = black data_pipeline
|
|
|
|
flake8 data_pipeline
|
2022-01-10 16:43:56 -05:00
|
|
|
pylint data_pipeline
|
2021-08-02 12:16:38 -04:00
|
|
|
|
|
|
|
[testenv:checkdeps]
|
|
|
|
# checks the dependencies for security vulnerabilities and open source licenses
|
2022-01-10 16:43:56 -05:00
|
|
|
allowlist_externals = bash
|
2022-02-03 17:05:51 -05:00
|
|
|
commands = safety check --ignore 44715 # known issue: https://github.com/pyupio/safety/issues/364
|
2022-01-10 16:43:56 -05:00
|
|
|
bash scripts/run-liccheck.sh
|
2021-09-22 13:47:37 -04:00
|
|
|
|
|
|
|
[testenv:pytest]
|
|
|
|
# Run tests
|
|
|
|
deps = pytest
|
2022-01-10 16:43:56 -05:00
|
|
|
commands = pytest --full-trace
|