mirror of
https://github.com/enpaul/vault2vault.git
synced 2024-11-24 11:06:53 +00:00
Ethan Paul
fdfdcbff47
Add py310 to toxfile Fix naming mismatch in makefile Remove default args from pylintrc Update year in copyright
64 lines
1.6 KiB
INI
64 lines
1.6 KiB
INI
[tox]
|
|
envlist = py36, py37, py38, py39, py310, static, static-tests, security
|
|
isolated_build = true
|
|
skip_missing_interpreters = true
|
|
|
|
[testenv]
|
|
description = Run the tests
|
|
require_locked_deps = true
|
|
require_poetry = true
|
|
locked_deps =
|
|
pytest
|
|
pytest-cov
|
|
toml
|
|
commands =
|
|
pytest --cov vault2vault --cov-config {toxinidir}/.coveragerc --cov-report term-missing {toxinidir}/tests/
|
|
|
|
[testenv:static]
|
|
description = Static formatting and quality enforcement
|
|
basepython = python3.8
|
|
platform = linux
|
|
ignore_errors = true
|
|
locked_deps =
|
|
black
|
|
blacken-docs
|
|
mdformat
|
|
mdformat-gfm
|
|
mypy
|
|
reorder-python-imports
|
|
pre-commit
|
|
pre-commit-hooks
|
|
pylint
|
|
commands =
|
|
pre-commit run --all-files
|
|
pylint --rcfile {toxinidir}/.pylintrc {toxinidir}/vault2vault.py
|
|
mypy --ignore-missing-imports --no-strict-optional {toxinidir}/vault2vault.py
|
|
|
|
[testenv:static-tests]
|
|
description = Static formatting and quality enforcement for the tests
|
|
basepython = python3.8
|
|
platform = linux
|
|
ignore_errors = true
|
|
locked_deps =
|
|
pylint
|
|
pytest
|
|
mypy
|
|
commands =
|
|
pylint --rcfile {toxinidir}/.pylintrc {toxinidir}/tests/
|
|
mypy --ignore-missing-imports --no-strict-optional {toxinidir}/tests/
|
|
|
|
[testenv:security]
|
|
description = Security checks
|
|
basepython = python3.8
|
|
platform = linux
|
|
ignore_errors = true
|
|
locked_deps =
|
|
bandit
|
|
safety
|
|
poetry
|
|
commands =
|
|
bandit --recursive --quiet {toxinidir}/vault2vault.py
|
|
bandit --recursive --quiet --skip B101 {toxinidir}/tests/
|
|
poetry export --format requirements.txt --output {envtmpdir}/requirements.txt --without-hashes --dev
|
|
safety check --bare --file {envtmpdir}/requirements.txt
|