mirror of
https://github.com/enpaul/tox-poetry-installer.git
synced 2024-10-29 19:47:00 +00:00
41 lines
927 B
INI
41 lines
927 B
INI
[tox]
|
|
envlist = py36, py37, py38, static, security
|
|
isolated_build = true
|
|
|
|
[testenv]
|
|
description = Run the tests
|
|
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"
|