forked from grantjenks/free-python-games
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
77 lines (63 loc) · 1.6 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
[tox]
envlist=bluecheck,doc8,docs,flake8,isortcheck,rstcheck,py37,py38,py39,py310,py311
skip_missing_interpreters=True
[testenv]
deps=
coverage
pytest
pytest-cov
commands=pytest tests
setenv=
PYTHONPATH={toxinidir}:{toxinidir}/tests
[testenv:blue]
commands=blue {toxinidir}/src/freegames {toxinidir}/tests
deps=blue
[testenv:bluecheck]
commands=blue --check {toxinidir}/src/freegames {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=
sphinx
[testenv:flake8]
commands=flake8 {toxinidir}/src/freegames {toxinidir}/tests
deps=flake8
[testenv:isort]
commands=isort {toxinidir}/src/freegames {toxinidir}/tests
deps=isort
[testenv:isortcheck]
commands=isort --check {toxinidir}/src/freegames {toxinidir}/tests
deps=isort
[testenv:rstcheck]
commands=rstcheck --report-level warning {toxinidir}/README.rst
deps=rstcheck
[testenv:uploaddocs]
allowlist_externals=rsync
changedir=docs
commands=rsync --rsync-path 'sudo -u herokuish rsync' -avzP --stats --delete _build/html/ grantjenks.com:/srv/www/grantjenks.com/public/docs/freegames/
[isort]
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
ensure_newline_before_comments = True
line_length = 80
[pytest]
addopts=
--cov-fail-under=100
--cov-report=term-missing
--cov=freegames
--doctest-glob="*.rst"
--doctest-modules
--import-mode append
testpaths=docs src/freegames tests README.rst
[doc8]
# ignore=D000
[flake8]
ignore=E722,F403,F405,W503
max-line-length=120