forked from capitalone/DataProfiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
56 lines (50 loc) · 1.34 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
[tox]
envlist = py39, py310, 311, pypi-description, manifest, precom
[testenv]
# extras =
# tests
setenv =
DATAPROFILER_SEED=0
deps =
pytest
pytest-cov
-rrequirements.txt
-rrequirements-dev.txt
-rrequirements-ml.txt
-rrequirements-reports.txt
-rrequirements-test.txt
commands =
python3 -m pytest dataprofiler/tests/ --cov=dataprofiler --cov-fail-under=80 --cov-report=xml:coverage.xml --forked
# add "docs" to `envlist` to run the docs build
#[testenv:docs]
#extras = docs
#changedir = docs
#commands = sphinx-build -b html source _build
[testenv:pypi-description]
deps =
{[testenv]deps}
twine
wheel
skip_install = true
commands =
python setup.py sdist bdist_wheel
twine check dist/*
[testenv:manifest]
deps =
{[testenv]deps}
check-manifest
skip_install = true
commands = check-manifest
# skip isort for infinite loop issues between tox and top level settings
[testenv:precom]
skip_install = true
deps =
{[testenv]deps}
pre-commit
commands =
pre-commit run black --all-files --verbose
# if you use the walrus operator on Python 3.8 disable the flake8 check
pre-commit run flake8 --all-files --verbose
pre-commit run trailing-whitespace --all-files --verbose
pre-commit run debug-statements --all-files --verbose
pre-commit run end-of-file-fixer --all-files --verbose