-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtox.ini
More file actions
56 lines (49 loc) · 1.55 KB
/
tox.ini
File metadata and controls
56 lines (49 loc) · 1.55 KB
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
# 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 src/hypofuzz/
[testenv:docs]
passenv=
HYPOFUZZ_DOCS_OUTPUT_DIR
description = Builds docs with sphinx
deps =
--requirement deps/docs.txt
commands =
pip install --editable .
sphinx-build -W --keep-going src/hypofuzz/docs {env:HYPOFUZZ_DOCS_OUTPUT_DIR:docs/docs} {posargs}
[testenv:{test,pytest7}]
description = Runs pytest with posargs - `tox -e test -- -v` == `pytest -v`
deps =
--requirement deps/test.txt
commands =
pip install --editable .
pytest7: pip install --upgrade pytest~=7.0
pytest tests/ {posargs:-n auto}
[testenv:deps]
basepython = python3.10
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 pyproject.toml
pip-compile --annotation-style=line --quiet --upgrade --rebuild --no-strip-extras --output-file=deps/test.txt deps/test.in pyproject.toml
# Settings for other tools
[pytest]
xfail_strict = True
addopts =
-Werror
--tb=short
[coverage:report]
exclude_lines =
pragma: no cover
raise NotImplementedError