-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
42 lines (38 loc) · 832 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
33
34
35
36
37
38
39
40
41
42
[tox]
envlist = py3, lint, type
[testenv]
description = Run tests
deps =
-rtests/requirements.txt
commands =
pytest {posargs}
setenv =
JAX_PLATFORMS = cpu
JAX_ENABLE_X64 = True
[testenv:lint]
description = Check code for style and formatting
basepython = python3
skip_install = true
ignore_errors = true
deps =
ruff>=0.1.5
black>=24.1.0,<25
commands =
ruff check -- src/powerpax/ tests/ docs/
black --check --diff src/powerpax/ tests/ docs/
[testenv:type]
description = Check types in library source
basepython = python3
deps =
mypy>=1.0.0
commands =
mypy src/powerpax/
[testenv:docs]
description = Build documentation site
basepython = python3
deps =
-rdocs/requirements.txt
commands =
sphinx-build -W -b html {toxinidir}/docs/ {toxinidir}/docs/_build/html/
setenv =
PYDEVD_DISABLE_FILE_VALIDATION = 1