forked from feature-engine/feature_engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
73 lines (51 loc) · 1.07 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
[tox]
envlist = py36, py37, py38, py39, docs, lint, stylechecks, typechecks
skipsdist = true
[testenv]
install_command = pip install {opts} {packages}
envdir = {toxworkdir}/unit_tests
setenv =
PYTHONPATH=.
commands =
pytest tests
[testenv:py36]
deps =
-rtest_requirements.txt
[testenv:py37]
deps =
-rtest_requirements.txt
[testenv:py38]
deps =
-rtest_requirements.txt
[testenv:py39]
deps =
-rtest_requirements.txt
[testenv:docs]
deps =
-r docs/requirements.txt
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
[testenv:stylechecks]
deps =
flake8
commands = {posargs:flake8 feature_engine tests}
[testenv:typechecks]
deps =
mypy
commands = {posargs:mypy feature_engine}
[testenv:lint]
deps =
-rtest_requirements.txt
commands =
isort feature_engine tests
black feature_engine tests
[flake8]
exclude = .git, env
# match black code formatter
max-line-length = 88
[isort]
skip = feature_engine/outliers/__init__.py
profile = black
line_length = 88
lines_between_sections = 1
known_first_party = "sentry"