Update to use poetry dev groups

This commit is contained in:
2023-03-02 16:59:18 -05:00
parent 29243223fe
commit d11af1658d
3 changed files with 107 additions and 113 deletions

38
tox.ini
View File

@@ -1,5 +1,5 @@
[tox]
envlist = py36, py37, py38, py39, py310, static, static-tests, security
envlist = py3{6-10}, static, static-tests, security
isolated_build = true
skip_missing_interpreters = true
@@ -9,10 +9,8 @@ require_locked_deps = true
require_poetry = true
extras =
ansible
locked_deps =
pytest
pytest-cov
toml
poetry_dep_groups =
test
commands =
pytest {toxinidir}/tests/ \
--cov vault2vault \
@@ -21,20 +19,11 @@ commands =
[testenv:static]
description = Static formatting and quality enforcement
basepython = python3.8
basepython = python3.10
platform = linux
ignore_errors = true
locked_deps =
black
blacken-docs
mdformat
mdformat-gfm
mypy
reorder-python-imports
pre-commit
pre-commit-hooks
pylint
types-toml
poetry_dep_groups =
dev
commands =
pre-commit run \
--all-files
@@ -46,7 +35,7 @@ commands =
[testenv:static-tests]
description = Static formatting and quality enforcement for the tests
basepython = python3.8
basepython = python3.10
platform = linux
ignore_errors = true
locked_deps =
@@ -63,14 +52,12 @@ commands =
[testenv:security]
description = Security checks
basepython = python3.8
basepython = python3.10
platform = linux
ignore_errors = true
skip_install = true
locked_deps =
bandit
safety
poetry
poetry_dep_groups =
security
commands =
bandit {toxinidir}/vault2vault.py \
--recursive \
@@ -83,7 +70,10 @@ commands =
--format requirements.txt \
--output {envtmpdir}/requirements.txt \
--without-hashes \
--dev
--with dev \
--with ci \
--with security \
--with test
safety check \
--file {envtmpdir}/requirements.txt \
--json