diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d1c42a8..6be5194 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -37,3 +37,8 @@ repos: hooks: - id: bandit args: ["--skip", "B101"] + + - repo: https://github.com/tox-dev/tox-ini-fmt + rev: "0.2.0" + hooks: + - id: tox-ini-fmt diff --git a/tox.ini b/tox.ini index f1faea9..ba26644 100644 --- a/tox.ini +++ b/tox.ini @@ -1,31 +1,33 @@ [tox] envlist = - py36, - py37, - py38, - coverage, - pre-commit + py38 + py37 + py36 + coverage + pre-commit [testenv] deps = - pytest + pytest commands = - pip install -U pip - pip install -e . - pytest {posargs} - -[testenv:pre-commit] -skip_install = true -deps = pre-commit -commands = pre-commit run --all-files --show-diff-on-failure + pip install -U pip + pip install -e . + pytest {posargs} [testenv:coverage] +commands = + pip install -U pip + pip install -e .[test] + pytest --cov=hibpcli --cov=tests --cov-report term-missing --cov-report html develop = - true + true + +[testenv:pre-commit] +skip_install = true +deps = + pre-commit commands = - pip install -U pip - pip install -e .[test] - pytest --cov=hibpcli --cov=tests --cov-report term-missing --cov-report html + pre-commit run --all-files --show-diff-on-failure [flake8] max-line-length = 88