forked from Qiskit/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
32 lines (28 loc) · 749 Bytes
/
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
[tox]
min_version = 4.0
env_list = py311
skipsdist = true
[testenv]
deps =
-e scripts/nb-tester
-r scripts/nb-tester/requirements.txt
setenv = PYDEVD_DISABLE_FILE_VALIDATION=1
commands = test-docs-notebooks {posargs} --config-path scripts/config/notebook-testing.toml
[testenv:{lint,fix}]
deps =
squeaky==0.7.0
ruff==0.7.1
commands =
lint: ruff check {posargs:docs}
lint: ruff format --check {posargs:docs}
lint: squeaky --check --no-advice {posargs:docs}
lint: python scripts/ci/check-for-version-info-cells.py
fix: squeaky {posargs:docs}
fix: ruff format {posargs:docs}
fix: ruff check --fix {posargs:docs}
[testenv:tests]
deps =
-e scripts/nb-tester
-e scripts/image-tester
pytest
commands = pytest