Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
SeleniumHQ
GitHub Repository: SeleniumHQ/Selenium
Path: blob/trunk/py/tox.ini
3987 views
1
[tox]
2
envlist =
3
validate
4
linting
5
typecheck
6
7
8
[testenv:validate]
9
skip_install = true
10
dependency_groups = validate
11
commands =
12
validate-pyproject ./pyproject.toml
13
14
15
[testenv:docs]
16
skip_install = true
17
deps =
18
-r {toxinidir}/requirements.txt
19
commands =
20
# generate `docs/source/api.rst` with module listing
21
{envpython} ./generate_api_module_listing.py
22
# regenerate autodoc stub pages
23
sphinx-autogen docs/source/api.rst
24
# build api docs
25
sphinx-build -b html -d ../build/docs/doctrees docs/source ../build/docs/api/py {posargs}
26
setenv =
27
PYTHONPATH = {toxinidir}/.
28
29
30
[testenv:typecheck]
31
skip_install = true
32
deps =
33
-r {toxinidir}/requirements.txt
34
commands =
35
mypy --install-types selenium {posargs}
36
37
38
[testenv:linting]
39
skip_install = true
40
dependency_groups = lint
41
commands =
42
ruff check --fix --show-fixes --exit-non-zero-on-fix {posargs:.}
43
ruff format --exit-non-zero-on-format {posargs:.}
44
45