tox-poetry-installer/tox.ini

41 lines
927 B
INI
Raw Normal View History

2020-09-23 06:17:30 +00:00
[tox]
envlist = py36, py37, py38, static, security
2020-09-23 06:17:30 +00:00
isolated_build = true
[testenv]
description = Run the tests
2020-09-23 06:17:30 +00:00
deps =
requests
commands =
pip freeze
[testenv:static]
description = Static code quality checks and formatting enforcement
basepython = python3.7
ignore_errors = true
deps =
pylint
mypy
black
reorder-python-imports
pre-commit
commands =
black tox_poetry_installer.py
reorder-python-imports tox_poetry_installer.py
pylint tox_poetry_installer.py
mypy tox_poetry_installer.py --ignore-missing-imports --no-strict-optional
pre-commit run --all-files
[testenv:security]
description = Security checks
basepython = python3.7
ignore_errors = true
deps =
bandit
safety
allowlist_externals =
bash
commands =
bandit tox_poetry_installer.py --recursive
bash -c "poetry export --format requirements.txt --without-hashes --dev | safety check --stdin --bare"