mirror of
https://github.com/enpaul/kodak.git
synced 2024-11-14 10:36:55 +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
|
||||
toml
|
||||
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]
|
||||
description = Static formatting and quality enforcement
|
||||
@ -35,9 +38,13 @@ locked_deps =
|
||||
pre-commit-hooks
|
||||
pylint
|
||||
commands =
|
||||
pre-commit run --all-files
|
||||
pylint --rcfile {toxinidir}/.pylintrc {toxinidir}/kodak/
|
||||
mypy --ignore-missing-imports --no-strict-optional {toxinidir}/kodak/
|
||||
pre-commit run \
|
||||
--all-files
|
||||
pylint {toxinidir}/kodak/ \
|
||||
--rcfile {toxinidir}/.pylintrc
|
||||
mypy {toxinidir}/kodak/ \
|
||||
--ignore-missing-imports \
|
||||
--no-strict-optional
|
||||
|
||||
[testenv:static-tests]
|
||||
description = Static formatting and quality enforcement for the tests
|
||||
@ -49,8 +56,11 @@ locked_deps =
|
||||
pytest
|
||||
openapi-spec-validator
|
||||
commands =
|
||||
pylint --rcfile {toxinidir}/.pylintrc {toxinidir}/tests/
|
||||
mypy --ignore-missing-imports --no-strict-optional {toxinidir}/tests/
|
||||
pylint {toxinidir}/tests/ \
|
||||
--rcfile {toxinidir}/.pylintrc
|
||||
mypy {toxinidir}/tests/ \
|
||||
--ignore-missing-imports \
|
||||
--no-strict-optional
|
||||
|
||||
[testenv:security]
|
||||
description = Security checks
|
||||
@ -62,7 +72,19 @@ locked_deps =
|
||||
safety
|
||||
poetry
|
||||
commands =
|
||||
bandit --recursive --quiet {toxinidir}/kodak/
|
||||
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
|
||||
bandit {toxinidir}/kodak/ \
|
||||
--recursive \
|
||||
--quiet
|
||||
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