Skip to content

Commit

Permalink
Fixes tox.ini targets (#5)
Browse files Browse the repository at this point in the history
The format and lint tox targets are incomplete. This will make it in
line with the other rocks.
  • Loading branch information
claudiubelu committed Jul 23, 2024
1 parent 0944838 commit 7189f42
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions tests/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -63,10 +65,11 @@ pass_env =
ROCK_*
BUILT_ROCKS_METADATA


[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

0 comments on commit 7189f42

Please sign in to comment.