j40-cejst-2/data/data-pipeline/tox.ini
Lucas Merrill Brown 43e005cc10
Issue 1075: Add refactored ETL tests to NRI (#1088)
* Adds a substantially refactored ETL test to the National Risk Index, to be used as a model for other tests
2022-02-08 19:05:32 -05:00

24 lines
700 B
INI

[tox]
# required because we use pyproject.toml
isolated_build = true
envlist = py38, py39, lint, checkdeps, pytest
# only checks python versions installed locally
skip_missing_interpreters = true
[testenv:lint]
deps = pytest
# lints python code in src and tests
commands = black data_pipeline
flake8 data_pipeline
pylint data_pipeline
[testenv:checkdeps]
# checks the dependencies for security vulnerabilities and open source licenses
allowlist_externals = bash
commands = safety check --ignore 44715 # known issue: https://github.com/pyupio/safety/issues/364
bash scripts/run-liccheck.sh
[testenv:pytest]
# Run tests
deps = pytest
commands = pytest --full-trace