forked from danceratopz/execution-spec-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
66 lines (53 loc) · 1.41 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
[tox]
env_list =
framework
tests
docs
[testenv:framework]
description = Run checks on helper libraries and test framework
extras =
test
lint
src = src setup.py
commands =
fname8 {[testenv:framework]src}
isort {[testenv:framework]src} --check --diff
black {[testenv:framework]src} --check --diff
flake8 {[testenv:framework]src}
mypy {[testenv:framework]src}
pytest -c ./pytest-framework.ini -n auto
[testenv:py3]
description = An alias for the 'framework' tox environment
deps = {[testenv:framework]deps}
extras = {[testenv:framework]extras}
allowlist_externals = {[testenv:framework]allowlist_externals}
commands = {[testenv:framework]commands}
[testenv:tests]
description = Run checks on the test cases in tests/
extras =
test
lint
commands =
fname8 tests
isort tests --check --diff
black tests --check --diff
flake8 tests
mypy tests
pytest -n auto
[testenv:docs]
description = Run documentation checks
extras =
lint
docs
setenv =
SPEC_TESTS_AUTO_GENERATE_FILES = true
src = setup.py docs/gen_test_case_reference.py
commands =
fname8 {[testenv:docs]src}
isort {[testenv:docs]src} --check --diff
black {[testenv:docs]src} --check --diff
flake8 {[testenv:docs]src}
mypy {[testenv:docs]src}
mkdocs build --strict
python -m src.entry_points.pyspelling_soft_fail
python -m src.entry_points.markdownlintcli2_soft_fail