forked from VUnit/vunit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
50 lines (44 loc) · 1.52 KB
/
pyproject.toml
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
[build-system]
requires = [
"setuptools >= 35.0.2",
"setuptools_scm >= 2.0.0, <3"
]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 120
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py{36,37,38,39}-{fmt,unit,lint,docs}, py{36,37,38,39}-{acceptance,vcomponents}-{activehdl,ghdl,modelsim,rivierapro}, py{36,37,38,39}-coverage
skip_missing_interpreters = True
isolated_build = True
[testenv]
recreate=True
passenv=ALDEC_LICENSE_FILE
deps=
fmt: black
pytest
lint: pycodestyle
lint: pylint
lint: mypy
coverage: coverage
coverage: pycodestyle
coverage: pylint
coverage: mypy
docs: docutils
docs: sphinx
docs: sphinx-argparse
setenv=
acceptance-activehdl: VUNIT_SIMULATOR=activehdl
acceptance-ghdl: VUNIT_SIMULATOR=ghdl
acceptance-modelsim: VUNIT_SIMULATOR=modelsim
acceptance-rivierapro: VUNIT_SIMULATOR=rivierapro
commands=
fmt: {envpython} -m black ./ --exclude 'vunit/vhdl/JSON-for-VHDL|.eggs|.git|.hg|.mypy_cache|.nox|.tox|.venv|_build|buck-out|build|dist' {posargs}
unit: {envpython} -m pytest -v -ra tests/unit {posargs}
lint: {envpython} -m pytest -v -ra tests/lint {posargs}
docs: {envpython} tools/build_docs.py {envtmpdir}/docsbuild {posargs}
acceptance: {envpython} -m pytest -v -ra tests/acceptance {posargs}
vcomponents: {envpython} vunit/vhdl/verification_components/run.py --clean
coverage: {envpython} -m coverage run --branch --source vunit/ -m unittest discover tests/
"""