Skip to content

Commit

Permalink
Use tox-ini-fmt
Browse files Browse the repository at this point in the history
modified:   .pre-commit-config.yaml
modified:   tox.ini
  • Loading branch information
jugmac00 committed Oct 3, 2020
1 parent 9d38974 commit aa867ec
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 18 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Expand Up @@ -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
38 changes: 20 additions & 18 deletions 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
Expand Down

0 comments on commit aa867ec

Please sign in to comment.