-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
74 lines (66 loc) · 2.09 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
74
# The test environment and commands
[tox]
envlist = check, docs, test
skipsdist = True
[testenv:check]
description = Runs all formatting tools then static analysis (quick)
deps =
--requirement deps/check.txt
ignore_errors = True
commands =
shed
ruff check --fix-only .
mypy --config-file=tox.ini src/hypofuzz/
[testenv:docs]
description = Builds docs with sphinx
deps =
--requirement deps/docs.txt
commands =
pip install --no-deps --editable .
sphinx-build -W --keep-going docs-src docs/docs {posargs}
[testenv:{test,pytest7}]
description = Runs pytest with posargs - `tox -e test -- -v` == `pytest -v`
deps =
test: --requirement deps/test.txt
pytest7: --requirement deps/test-old.txt
commands =
pip install --no-deps --editable .
pytest {posargs:-n auto}
[testenv:deps]
description = Updates test corpora and the pinned dependencies in `deps/*.txt`
deps =
pip-tools
commands =
pip-compile --annotation-style=line --quiet --upgrade --rebuild --no-strip-extras --output-file=deps/check.txt deps/check.in
pip-compile --annotation-style=line --quiet --upgrade --rebuild --no-strip-extras --output-file=deps/docs.txt deps/docs.in setup.py
pip-compile --annotation-style=line --quiet --upgrade --rebuild --no-strip-extras --output-file=deps/test.txt deps/test.in setup.py
pip-compile --annotation-style=line --quiet --upgrade --rebuild --no-strip-extras --output-file=deps/test-old.txt deps/test-old.in setup.py
# Settings for other tools
[pytest]
xfail_strict = True
addopts =
-Werror
--tb=short
# --cov=hypofuzz
# --cov-branch
# --cov-report=term-missing:skip-covered
# --cov-fail-under=100
[mypy]
python_version = 3.10
platform = linux
disallow_untyped_calls = True
disallow_untyped_defs = True
disallow_untyped_decorators = True
follow_imports = silent
ignore_missing_imports = True
implicit_reexport = False
warn_no_return = True
warn_return_any = True
warn_unreachable = True
warn_unused_ignores = True
warn_unused_configs = True
warn_redundant_casts = True
[coverage:report]
exclude_lines =
pragma: no cover
raise NotImplementedError