Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes tox.ini targets #5

Merged
merged 1 commit into from
Jul 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -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
Loading