mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-27 01:31:40 -07:00
Re-export requirements.txt to fix version errors (#1099)
* 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...
This commit is contained in:
parent
2aa79a334c
commit
93595b7bb4
4 changed files with 66 additions and 70 deletions
|
@ -7,19 +7,32 @@ skip_missing_interpreters = true
|
|||
|
||||
[testenv:lint]
|
||||
# lints python code in src and tests
|
||||
basepython = python3.9
|
||||
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
|
||||
pylint 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
|
||||
commands = pytest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue