forked from Qiskit/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
39 lines (35 loc) · 1.03 KB
/
tox.ini
File metadata and controls
39 lines (35 loc) · 1.03 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
[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} --check-pending-deprecations --config-path scripts/config/notebook-testing.toml
[testenv:{lint,fix}]
deps =
squeaky==0.7.0
ruff==0.7.1
-e scripts/notebook-normalizer
commands =
lint: ruff check {posargs:docs learning}
lint: ruff format --check {posargs:docs learning}
lint: squeaky --check --no-advice {posargs:docs learning}
lint: python scripts/ci/check-for-version-info-cells.py
lint: qiskit-docs-notebook-normalizer --check
fix: squeaky {posargs:docs learning}
fix: ruff format {posargs:docs learning}
fix: ruff check --fix {posargs:docs learning}
fix: qiskit-docs-notebook-normalizer
[testenv:tests]
deps =
-e scripts/tool_runner
-e scripts/nb-tester
-e scripts/image-tester
-e scripts/notebook-normalizer
pytest
commands =
pytest
pytest scripts/pr-previews/cleanup.py