forked from feature-engine/feature_engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
71 lines (52 loc) · 1.19 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
[tox]
envlist = py39, py310, py311, py312, codecov, docs, stylechecks, typechecks
skipsdist = true
[testenv]
install_command = pip install {opts} {packages}
envdir = {toxworkdir}/unit_tests
setenv =
PYTHONPATH=.
COVERAGE_RCFILE = {envtmpdir}/coveragerc
commands =
pytest tests
[testenv:py39]
deps =
-rtest_requirements.txt
[testenv:py310]
deps =
-rtest_requirements.txt
[testenv:py311]
deps =
-rtest_requirements.txt
[testenv:py312]
deps =
-rtest_requirements.txt
[testenv:codecov]
deps =
-rtest_requirements.txt
commands_pre =
{envpython} -c 'from pathlib import Path; Path(r"{env:COVERAGE_RCFILE}").write_text(Path(".coveragerc").read_text())'
commands =
coverage run -m pytest -v
coverage report
[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}
[flake8]
exclude = .git, env
# match black code formatter
max-line-length = 88
profile = black
line_length = 88
lines_between_sections = 1
known_first_party = "sentry"