Add pre-commit and fix isort

This commit is contained in:
Hugo 2019-09-26 10:31:49 +03:00
parent 695a11a4cd
commit d589c5ef8a
6 changed files with 42 additions and 16 deletions

10
tox.ini
View file

@ -23,10 +23,6 @@ deps = ipdb
commands = {posargs}
[testenv:lint]
deps =
flake8
pep8-naming
black
commands =
flake8 .
black --check --diff .
deps = pre-commit
commands = pre-commit run --all-files
skip_install = true