From 05a328df5b830a48152eab81ba824f292d5f3e1e Mon Sep 17 00:00:00 2001 From: Claudiu Belu Date: Mon, 22 Jul 2024 11:58:51 +0000 Subject: [PATCH] Fixes tox.ini targets The format and lint tox targets are incomplete. This will make it in line with the other rocks. --- tests/tox.ini | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/tests/tox.ini b/tests/tox.ini index a038b15..0c820eb 100644 --- a/tests/tox.ini +++ b/tests/tox.ini @@ -15,22 +15,24 @@ pass_env = description = Apply coding style standards to code deps = -r {tox_root}/requirements-dev.txt commands = - licenseheaders -t {tox_root}/.copyright.tmpl -cy -o 'Canonical, Ltd' -d {tox_root} - isort {tox_root} --profile=black - black {tox_root} + licenseheaders -t {tox_root}/.copyright.tmpl -cy -o 'Canonical, Ltd' -d {tox_root}/sanity + licenseheaders -t {tox_root}/.copyright.tmpl -cy -o 'Canonical, Ltd' -d {tox_root}/integration + isort {tox_root}/sanity {tox_root}/integration --profile=black + black {tox_root}/sanity {tox_root}/integration [testenv:lint] description = Check code against coding style standards deps = -r {tox_root}/requirements-dev.txt commands = - codespell {tox_root} --skip=".tox" - flake8 {tox_root} - licenseheaders -t {tox_root}/.copyright.tmpl -cy -o 'Canonical, Ltd' -d {tox_root} --dry - isort {tox_root} --profile=black --check - black {tox_root} --check --diff + codespell {tox_root}/sanity {tox_root}/integration + flake8 {tox_root}/sanity {tox_root}/integration + licenseheaders -t {tox_root}/.copyright.tmpl -cy -o 'Canonical, Ltd' -d {tox_root}/sanity --dry + licenseheaders -t {tox_root}/.copyright.tmpl -cy -o 'Canonical, Ltd' -d {tox_root}/integration --dry + isort {tox_root}/sanity {tox_root}/integration --profile=black --check + black {tox_root}/sanity {tox_root}/integration --check --diff [testenv:sanity] -description = Run integration tests +description = Run sanity tests deps = -r {tox_root}/requirements-test.txt commands = @@ -61,10 +63,11 @@ pass_env = TEST_* ROCK_* - [flake8] max-line-length = 120 select = E,W,F,C,N -ignore = W503 +# E231: missing whitespace after ':' +# E231 excluded for false positives in strings and fstrings. +ignore = W503,E231 exclude = venv,.git,.tox,.tox_env,.venv,build,dist,*.egg_info show-source = true