-
Notifications
You must be signed in to change notification settings - Fork 21
/
tox.ini
80 lines (61 loc) · 1.4 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
[tox]
envlist = py38, style-black, style-isort, lint-flake8, type-pyright, docs, pytest
skipsdist = true
[testenv]
description = Run style and static type checking.
deps =
# style
black
isort
# lint
flake8
gidgethub
wakeonlan
# non-typeshed stubs
pandas-stubs
tabulate
asyncache
rapidfuzz
plotly
pytrends
pyjson5
expr.py
# docs
sphinx
sphinx-rtd-theme==1.0.0
furo
# pytest
pytest
Red-DiscordBot
markdownify
# type
# (some are covered under below)
pyright
asyncache
[testenv:style-black]
description = Check the style conforms with black.
envdir = {toxworkdir}/py38
commands = black --check .
[testenv:style-isort]
description = Check imports conform with isort.
envdir = {toxworkdir}/py38
commands = isort --check .
[testenv:lint-flake8]
description = Lint with flake8.
envdir = {toxworkdir}/py38
commands = flake8 .
; [testenv:type-pyright]
; description = Type checking with pyright.
; envdir = {toxworkdir}/py38
; commands =
; pip install --force-reinstall git+https://github.com/Rapptz/discord.py
; pyright
[testenv:docs]
description = Try to build the docs (HTML)
envdir = {toxworkdir}/py38
commands = sphinx-build -d "{toxworkdir}/docs_doctree" docs "{toxworkdir}/docs_out" --keep-going
[testenv:pytest]
description = Run pytest
envdir = {toxworkdir}/py38
commands =
pytest tests