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

Use tox-ini-fmt #51

Merged
merged 1 commit into from
Oct 4, 2020
Merged
Show file tree
Hide file tree
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
53 changes: 25 additions & 28 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,39 +1,36 @@
repos:
- repo: https://github.com/mgedmin/check-manifest
rev: "0.39"
- repo: https://github.com/mgedmin/check-python-versions
rev: 0.15.1
hooks:
- id: check-manifest

repos:
- repo: https://github.com/mgedmin/check-python-versions
rev: "0.15"
hooks:
- id: check-python-versions

- repo: https://github.com/pre-commit/pre-commit-hooks
- id: check-python-versions
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: debug-statements

- repo: https://github.com/psf/black
- id: debug-statements
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
language_version: python3.6

- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
- id: black
language_version: python3.6
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
additional_dependencies: [flake8-click==0.3.1, flake8-bugbear==20.1.4]

- repo: https://github.com/PyCQA/isort.git
- id: flake8
additional_dependencies:
- flake8-click==0.3.1
- flake8-bugbear==20.1.4
- repo: https://github.com/PyCQA/isort.git
rev: 5.5.4
hooks:
- id: isort

- repo: https://github.com/PyCQA/bandit
- id: isort
- repo: https://github.com/PyCQA/bandit
rev: 1.6.2
hooks:
- id: bandit
args: ["--skip", "B101"]
- id: bandit
args:
- --skip
- B101
- repo: https://github.com/tox-dev/tox-ini-fmt
rev: 0.3.0
hooks:
- id: tox-ini-fmt
23 changes: 13 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
[tox]
envlist =
py36,
py37,
py38,
coverage,
py38
py37
py36
coverage
pre-commit

[testenv]
extras = test
extras =
test
commands =
pytest {posargs}

[testenv:pre-commit]
skip_install = true
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure

[testenv:coverage]
commands =
pytest --cov=hibpcli --cov=tests --cov-report term-missing --cov-report html

[testenv:pre-commit]
skip_install = true
deps =
pre-commit
commands =
pre-commit run --all-files --show-diff-on-failure

[flake8]
max-line-length = 88
ignore = E231 # clashes with black
Expand Down