forked from procrastinate-org/procrastinate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
64 lines (59 loc) · 1.11 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
[tox]
envlist =
{py36,py37,py38}-tests,check-lint,docs
[testenv]
usedevelop = True
extras =
test
django
passenv =
PG*
tests: PYTEST_ADDOPTS
commands =
pip freeze -l
pytest {posargs}
[testenv:check-lint]
extras =
test
lint
ignore_errors=true
commands =
mypy procrastinate
flake8 .
isort --check-only .
black --check .
check-manifest
[testenv:format]
extras =
dev
# It's important that isort recognizes pytest as a 3rd party
test
commands =
isort .
black .
[testenv:docs]
extras =
docs
passenv =
CHANGELOG_GITHUB_TOKEN
LC_ALL
commands =
sphinx-build -EW docs docs/_build/html {posargs}
doc8 docs
[testenv:docs-spelling]
extras =
async
docs
docs_spelling
whitelist_externals =
sort
passenv =
CHANGELOG_GITHUB_TOKEN
LC_ALL
commands =
sphinx-build -EW -b spelling docs docs/_build/html {posargs}
doc8 docs
# wordlist should be sorted to avoid duplicates
# If this line breaks, fix with:
# sort -bdfi docs/spelling_wordlist.txt -o docs/spelling_wordlist.txt
sort -cbdfi docs/spelling_wordlist.txt