mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 10:04:18 -08:00
* Remove requirements.txt as a dependency This converts both docker and tox to use poetry, eliminating usage of requirements.txt in both flows. - In tox, uses the tox-poetry package which installs dependencies from the lockfile. - In docker, uses https://stackoverflow.com/questions/53835198/integrating-python-poetry-with-docker as a reference. * Don't copy pyproject.toml * Remove obsoleted docs about requirements.txt * Add --full-trace option to pytest * Fix liccheck liccheck works with requirements.txt, not with poetry, so there needs to be an extra translation step. * TEMP: Add WIP fix for pandas issue This is just to see if the github actions would pass once this fix gets merged, but it's being reviewed separately. * Revert "TEMP: Add WIP fix for pandas issue" This reverts commit 06e38e8cc77f5f3105c6e7a9449901db67aa1c82.
23 lines
617 B
INI
23 lines
617 B
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
|
|
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
|
|
bash scripts/run-liccheck.sh
|
|
|
|
[testenv:pytest]
|
|
# Run tests
|
|
deps = pytest
|
|
commands = pytest --full-trace
|