mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 10:04:18 -08:00
Tox Security Fix (#1242)
* checkpoint * safety ignore * update python matrix for data checks * downloading census once
This commit is contained in:
parent
fb69a09485
commit
1d399d3ca9
5 changed files with 641 additions and 657 deletions
2
.github/workflows/data-checks.yml
vendored
2
.github/workflows/data-checks.yml
vendored
|
@ -11,7 +11,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
# checks all of the versions allowed in pyproject.toml
|
# checks all of the versions allowed in pyproject.toml
|
||||||
python-version: [3.7, 3.8, 3.9]
|
python-version: [3.8, 3.9]
|
||||||
steps:
|
steps:
|
||||||
# installs python
|
# installs python
|
||||||
# one execution of the tests per version listed above
|
# one execution of the tests per version listed above
|
||||||
|
|
2
.github/workflows/score-checks.yml
vendored
2
.github/workflows/score-checks.yml
vendored
|
@ -42,4 +42,4 @@ jobs:
|
||||||
poetry run python3 data_pipeline/application.py generate-score-post -s aws
|
poetry run python3 data_pipeline/application.py generate-score-post -s aws
|
||||||
- name: Generate Score Geo
|
- name: Generate Score Geo
|
||||||
run: |
|
run: |
|
||||||
poetry run python3 data_pipeline/application.py geo-score -s aws
|
poetry run python3 data_pipeline/application.py geo-score
|
||||||
|
|
1284
data/data-pipeline/poetry.lock
generated
1284
data/data-pipeline/poetry.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -13,10 +13,10 @@ ipython = "^7.31.1"
|
||||||
jupyter = "^1.0.0"
|
jupyter = "^1.0.0"
|
||||||
jupyter-contrib-nbextensions = "^0.5.1"
|
jupyter-contrib-nbextensions = "^0.5.1"
|
||||||
matplotlib = "^3.4.2"
|
matplotlib = "^3.4.2"
|
||||||
numpy = "^1.21.0"
|
numpy = "^1.22.1"
|
||||||
pandas = "^1.2.5"
|
pandas = "^1.2.5"
|
||||||
pillow = "9.0.0"
|
pillow = "9.0.0"
|
||||||
python = "^3.7.1"
|
python = "^3.8"
|
||||||
pypandoc = "^1.6.3"
|
pypandoc = "^1.6.3"
|
||||||
requests = "^2.25.1"
|
requests = "^2.25.1"
|
||||||
tqdm = "4.62.0"
|
tqdm = "4.62.0"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[tox]
|
[tox]
|
||||||
# required because we use pyproject.toml
|
# required because we use pyproject.toml
|
||||||
isolated_build = true
|
isolated_build = true
|
||||||
envlist = py37, py38, py39, lint, checkdeps, pytest
|
envlist = py38, py39, lint, checkdeps, pytest
|
||||||
# only checks python versions installed locally
|
# only checks python versions installed locally
|
||||||
skip_missing_interpreters = true
|
skip_missing_interpreters = true
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ commands = black data_pipeline
|
||||||
[testenv:checkdeps]
|
[testenv:checkdeps]
|
||||||
# checks the dependencies for security vulnerabilities and open source licenses
|
# checks the dependencies for security vulnerabilities and open source licenses
|
||||||
allowlist_externals = bash
|
allowlist_externals = bash
|
||||||
commands = safety check
|
commands = safety check --ignore 44715 # known issue: https://github.com/pyupio/safety/issues/364
|
||||||
bash scripts/run-liccheck.sh
|
bash scripts/run-liccheck.sh
|
||||||
|
|
||||||
[testenv:pytest]
|
[testenv:pytest]
|
||||||
|
|
Loading…
Add table
Reference in a new issue