-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
63 lines (58 loc) · 1.45 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
[tox]
minversion = 3.15
envlist = default
isolated_build = True
[pytest]
filterwarnings =
ignore::DeprecationWarning
addopts= -n auto
asyncio_mode = auto
markers =
only: marks a subset of tests to run (development purpose)
[testenv]
description = Invoke pytest to run automated tests
setenv =
TOXINIDIR = {toxinidir}
passenv =
HOME
PYTHONPATH
deps =
cairo-lang==0.10.1
cairo-nile==0.11.0
pytest-xdist
# See https://github.com/starkware-libs/cairo-lang/issues/52
marshmallow-dataclass==8.5.3
extras =
testing
commands =
nile compile --directory src/
pytest {posargs}
[testenv:coverage]
description = Invoke nile-coverage to generate coverage report
skip_install = True
setenv =
{[testenv]setenv}
CAIRO_PATH = src
deps =
{[testenv]deps}
nile-coverage==0.2.4
commands =
nile compile --directory src/
nile coverage -c src {posargs}
[testenv:build]
description = Build the package in isolation according to PEP517, see https://github.com/pypa/build
skip_install = True
changedir = {toxinidir}
deps =
build[virtualenv]
twine
commands =
python -m build . -o dist
python -m twine check --strict dist/*
[testenv:lint]
description = Lint Markdown documents following the rules set forth here: https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
changedir = {toxinidir}
allowlist_externals =
npx
commands =
npx markdownlint-cli README.md CONTRIBUTING.md docs -i docs/node_modules