Tests! And code formatting.

This commit is contained in:
2021-10-22 13:44:56 -07:00
parent 8da5f81f5e
commit 41bedb182b
7 changed files with 129 additions and 37 deletions

28
tox.ini Normal file
View File

@@ -0,0 +1,28 @@
[tox]
envlist = py36,py37,py38,py39
skip_missing_interpreters = True
skipsdist = True
minversion = 3.14.1
[testenv]
usedevelop = True
deps = -rtest_requirements.txt
passenv = COVERAGE_FILE
commands =
pytest {posargs}
py38,py39: black --check .
isort --check-only --settings-path setup.cfg .
flake8 novel_stats tests
[testenv:black]
commands =
black {posargs} .
[testenv:test]
commands =
pytest {posargs}
[testenv:isort]
deps = {[testenv]deps}
commands =
isort --settings-path setup.cfg .