mirror of
https://github.com/enpaul/kodak.git
synced 2024-11-23 15:07:13 +00:00
Update toxfile to fix coverage calculation and improve formatting
This commit is contained in:
parent
2de41125e7
commit
ed46f8ab17
42
tox.ini
42
tox.ini
@ -18,7 +18,10 @@ locked_deps =
|
|||||||
ruamel.yaml
|
ruamel.yaml
|
||||||
toml
|
toml
|
||||||
commands =
|
commands =
|
||||||
pytest --cov={envsitepackagesdir}/kodak --cov-config {toxinidir}/.coveragerc --cov-report term-missing {toxinidir}/tests/
|
pytest {toxinidir}/tests/ \
|
||||||
|
--cov {toxinidir}/kodak \
|
||||||
|
--cov-config {toxinidir}/.coveragerc \
|
||||||
|
--cov-report term-missing
|
||||||
|
|
||||||
[testenv:static]
|
[testenv:static]
|
||||||
description = Static formatting and quality enforcement
|
description = Static formatting and quality enforcement
|
||||||
@ -35,9 +38,13 @@ locked_deps =
|
|||||||
pre-commit-hooks
|
pre-commit-hooks
|
||||||
pylint
|
pylint
|
||||||
commands =
|
commands =
|
||||||
pre-commit run --all-files
|
pre-commit run \
|
||||||
pylint --rcfile {toxinidir}/.pylintrc {toxinidir}/kodak/
|
--all-files
|
||||||
mypy --ignore-missing-imports --no-strict-optional {toxinidir}/kodak/
|
pylint {toxinidir}/kodak/ \
|
||||||
|
--rcfile {toxinidir}/.pylintrc
|
||||||
|
mypy {toxinidir}/kodak/ \
|
||||||
|
--ignore-missing-imports \
|
||||||
|
--no-strict-optional
|
||||||
|
|
||||||
[testenv:static-tests]
|
[testenv:static-tests]
|
||||||
description = Static formatting and quality enforcement for the tests
|
description = Static formatting and quality enforcement for the tests
|
||||||
@ -49,8 +56,11 @@ locked_deps =
|
|||||||
pytest
|
pytest
|
||||||
openapi-spec-validator
|
openapi-spec-validator
|
||||||
commands =
|
commands =
|
||||||
pylint --rcfile {toxinidir}/.pylintrc {toxinidir}/tests/
|
pylint {toxinidir}/tests/ \
|
||||||
mypy --ignore-missing-imports --no-strict-optional {toxinidir}/tests/
|
--rcfile {toxinidir}/.pylintrc
|
||||||
|
mypy {toxinidir}/tests/ \
|
||||||
|
--ignore-missing-imports \
|
||||||
|
--no-strict-optional
|
||||||
|
|
||||||
[testenv:security]
|
[testenv:security]
|
||||||
description = Security checks
|
description = Security checks
|
||||||
@ -62,7 +72,19 @@ locked_deps =
|
|||||||
safety
|
safety
|
||||||
poetry
|
poetry
|
||||||
commands =
|
commands =
|
||||||
bandit --recursive --quiet {toxinidir}/kodak/
|
bandit {toxinidir}/kodak/ \
|
||||||
bandit --recursive --quiet --skip B101 {toxinidir}/tests/
|
--recursive \
|
||||||
poetry export --format requirements.txt --output {envtmpdir}/requirements.txt --without-hashes --dev
|
--quiet
|
||||||
safety check --bare --file {envtmpdir}/requirements.txt
|
bandit {toxinidir}/tests/ \
|
||||||
|
--recursive \
|
||||||
|
--quiet \
|
||||||
|
--skip B101
|
||||||
|
poetry export \
|
||||||
|
--format requirements.txt \
|
||||||
|
--output {envtmpdir}/requirements.txt \
|
||||||
|
--without-hashes \
|
||||||
|
--dev
|
||||||
|
safety check \
|
||||||
|
--json \
|
||||||
|
--file {envtmpdir}/requirements.txt \
|
||||||
|
--ignore 42050 # werkzeug defaults update in 2.0.2
|
||||||
|
Loading…
Reference in New Issue
Block a user