-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Expand file tree
/
Copy pathtox.ini
More file actions
46 lines (38 loc) · 971 Bytes
/
tox.ini
File metadata and controls
46 lines (38 loc) · 971 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[tox]
envlist =
validate
linting
typecheck
[testenv:validate]
skip_install = true
deps =
validate-pyproject==0.25
packaging==26.2
commands =
validate-pyproject ./pyproject.toml
[testenv:docs]
skip_install = true
deps =
-r {toxinidir}/requirements_lock.txt
commands =
# generate `docs/source/api.rst` with module listing
{envpython} ./generate_api_module_listing.py
# regenerate autodoc stub pages
sphinx-autogen docs/source/api.rst
# build api docs
sphinx-build -b html -d ../build/docs/doctrees docs/source ../build/docs/api/py {posargs}
setenv =
PYTHONPATH = {toxinidir}/.
[testenv:typecheck]
skip_install = true
deps =
-r {toxinidir}/requirements_lock.txt
commands =
mypy --install-types selenium {posargs}
[testenv:linting]
skip_install = true
deps =
ruff==0.15.13
commands =
ruff check --fix --show-fixes --exit-non-zero-on-fix {posargs:.}
ruff format --exit-non-zero-on-format {posargs:.}