-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
41 lines (34 loc) · 952 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py36
[testenv]
deps =
-rprerequirements.txt
-rrequirements.txt
setenv =
PYTHONPATH = {toxinidir}
commands =
coverage run -m pytest {posargs:tests}
coverage report --include "postr/*" --omit="*test*,.tox/*"
coverage html --omit=".tox/*,*test*"
pre-commit install --install-hooks
pre-commit run --all-files
sphinx-apidoc -o docs/source/ postr
sphinx-build -M html docs/ docs/_build
[flake8]
max-line-length = 120
exclude =
.git,
.tox/*,
*migrations*,
/venv/*,
/docs/*
/scripts/*
ignore = E999 # Disables flake8 from erroring on type annotations
show-source = True
max-complexity = 35
[pycodestyle]
max-line-length = 120