This repository was archived by the owner on Mar 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
executable file
·54 lines (46 loc) · 1.33 KB
/
tox.ini
File metadata and controls
executable file
·54 lines (46 loc) · 1.33 KB
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
[tox]
envlist = lint,py36,py37,py38
isolated_build = True
[testenv]
setenv =
VIRTUALENV_NO_DOWNLOAD=1
deps =
pytest >= 4.0
pytest-benchmark
mypy
pre-commit
orjson
ujson
[testenv:py36]
commands = python -m pytest {posargs}
commands_pre =
python -m pip install --no-index --find-links=dist multiclass twitter -U
[testenv:py37]
# Python 3.6+ has a number of compile-time warnings on invalid string escapes.
# PYTHONWARNINGS=d and --no-compile below make them visible during the Tox run.
install_command = pip install --no-compile {opts} {packages}
setenv =
PYTHONWARNINGS=d
commands = python -m pytest {posargs}
commands_pre =
python -m pip install --no-index --find-links=dist multiclass twitter -U
[testenv:py38]
# Python 3.6+ has a number of compile-time warnings on invalid string escapes.
# PYTHONWARNINGS=d and --no-compile below make them visible during the Tox run.
install_command = pip install --no-compile {opts} {packages}
setenv =
PYTHONWARNINGS=d
commands = python -m pytest {posargs}
commands_pre =
python -m pip install --no-index --find-links=dist multiclass twitter -U
[testenv:lint]
basepython = python3.7
skip_install = true
deps =
pre-commit
mypy
passenv = HOMEPATH # needed on Windows
commands = pre-commit run --all-files
[flake8]
max-line-length = 99
ignore = F841, W503