mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 10:04:18 -08:00
* Re-export requirements.txt to fix version errors The version of lxml in this file had a known vulnerability that got caught by the "safety" checker, but it is updated in the poetry files. Regenerated using: https://github.com/usds/justice40-tool/tree/main/data/data-pipeline#miscellaneous * Fix lint error * Run lint on all envs and add comments * Ignore testst that fail lint because of dev deps * Ignore medium.com in link checker It's returning 403s to github actions...
38 lines
1.4 KiB
INI
38 lines
1.4 KiB
INI
[tox]
|
|
# required because we use pyproject.toml
|
|
isolated_build = true
|
|
envlist = py37, py38, py39, lint, checkdeps, pytest
|
|
# only checks python versions installed locally
|
|
skip_missing_interpreters = true
|
|
|
|
[testenv:lint]
|
|
# lints python code in src and tests
|
|
deps = -rrequirements.txt
|
|
# These are "external" because they are dev dependencies that not in
|
|
# "requirements.txt" and therefore not installed in this env, but they will be
|
|
# available where this is being run. See:
|
|
# https://stackoverflow.com/questions/47642747/tox-warningtest-command-found-but-not-installed-in-testenv
|
|
allowlist_externals = black
|
|
flake8
|
|
pylint
|
|
commands = black data_pipeline
|
|
flake8 data_pipeline
|
|
# Ignore tests this lint check because test dependencies are not installed here.
|
|
pylint data_pipeline --ignore tests
|
|
|
|
[testenv:checkdeps]
|
|
# checks the dependencies for security vulnerabilities and open source licenses
|
|
deps = -rrequirements.txt
|
|
# These are "external" because they are dev dependencies that not in
|
|
# "requirements.txt" and therefore not installed in this env, but they will be
|
|
# available where this is being run. See:
|
|
# https://stackoverflow.com/questions/47642747/tox-warningtest-command-found-but-not-installed-in-testenv
|
|
allowlist_externals = safety
|
|
liccheck
|
|
commands = safety check
|
|
liccheck
|
|
|
|
[testenv:pytest]
|
|
# Run tests
|
|
deps = pytest
|
|
commands = pytest
|