forked from UCSBarchlab/PyRTL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
28 lines (23 loc) · 661 Bytes
/
tox.ini
File metadata and controls
28 lines (23 loc) · 661 Bytes
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
[tox]
# When changing the following line, be sure to update 'python-version' in
# .github/workflows/python-test.yml
envlist = py{3.9,3.13}-test, ruff
[gh-actions]
# For GitHub Actions, this maps from Python version to tox environments to run
# with the Python version.
python =
3.9: py3.9
3.13: py3.13, ruff
[testenv]
deps = -rrequirements.txt
envdir = {toxworkdir}/{env_name}
setenv =
PYTHONPATH = {toxinidir}
commands =
pytest --cov=pyrtl --cov-report=xml -n auto {posargs}
# For ruff, override the test command and don't install PyRTL's Python package.
[testenv:ruff]
skip_install = true
commands =
ruff check
ruff format --diff