-
Notifications
You must be signed in to change notification settings - Fork 12
/
tox.ini
82 lines (67 loc) · 1.65 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[tox]
envlist=bluecheck,doc8,docs,isortcheck,flake8,pylint,rstcheck,py36,py37,py38,py39
skip_missing_interpreters=True
[testenv]
commands=pytest
deps=
pytest
pytest-cov
[testenv:blue]
commands=blue {toxinidir}/setup.py {toxinidir}/patternmatching {toxinidir}/tests
deps=blue
[testenv:bluecheck]
commands=blue --check {toxinidir}/setup.py {toxinidir}/patternmatching {toxinidir}/tests
deps=blue
[testenv:doc8]
deps=doc8
commands=doc8 docs --ignore-path docs/_build
[testenv:docs]
allowlist_externals=make
changedir=docs
commands=make html
deps=
django==2.2.*
sphinx
[testenv:flake8]
commands=flake8 {toxinidir}/setup.py {toxinidir}/patternmatching {toxinidir}/tests
deps=flake8
[testenv:isort]
commands=isort {toxinidir}/setup.py {toxinidir}/patternmatching {toxinidir}/tests
deps=isort
[testenv:isortcheck]
commands=isort --check {toxinidir}/setup.py {toxinidir}/patternmatching {toxinidir}/tests
deps=isort
[testenv:pylint]
commands=pylint {toxinidir}/patternmatching
deps=
django==2.2.*
pylint
[testenv:rstcheck]
commands=rstcheck --report warning {toxinidir}/README.rst
deps=rstcheck
[testenv:uploaddocs]
allowlist_externals=rsync
changedir=docs
commands=
rsync -azP --stats --delete _build/html/ \
grantjenks.com:/srv/www/www.grantjenks.com/public/docs/patternmatching/
[isort]
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
ensure_newline_before_comments=True
line_length=79
[pytest]
addopts=
--cov-branch
--cov-fail-under=90
--cov-report=term-missing
--cov=patternmatching
--doctest-glob="*.rst"
[doc8]
# ignore=D000
[flake8]
exclude=
extend-ignore=E203
max-line-length=120