-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
60 lines (52 loc) · 1.27 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[tox]
env=py
name=damast
docker_base_image=python:3.10-slim
artifacts_dir={toxinidir}/artifacts
[testenv]
extras = test
allowlist_externals =
pytest
commands =
pytest --cov={[tox]name} \
--cov-report=html:{[tox]artifacts_dir}/tests/ \
--cov-report=term \
--cov-report=xml:{[tox]artifacts_dir}/tests/cobertura-coverage.xml \
{toxinidir}/tests
[testenv:backend_jax]
set_env =
KERAS_BACKEND=jax
[testenv:backend_tensorflow]
set_env =
KERAS_BACKEND=tensorflow
[testenv:backend_torch]
set_env =
KERAS_BACKEND=torch
[testenv:validate]
skip_install = true
deps =
pre-commit
commands =
pre-commit install
pre-commit run --all-files
[testenv:lint]
skip_install = true
deps =
flake8
flake8-gl-codeclimate
allowlist_externals =
flake8
commands = flake8 --exit-zero --format gl-codeclimate --output-file {[tox]artifacts_dir}/lint/lint-codeclimate.json
[testenv:build_docs]
skip_install = true
deps =
jupyter-book
commands =
python -m pip install pydot pandas
python -m pip install .[dev]
jupyter book build .
[flake8]
# Align with black setup https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length
max-line-length=120
select = C,E,F,W,B,B950
extend-ignore = E203, E501