-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
31 lines (27 loc) · 718 Bytes
/
Copy pathtox.ini
File metadata and controls
31 lines (27 loc) · 718 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
[tox]
skipsdist = true
envlist = clean, format, lint, python3.8, python3.9
[testenv]
allowlist_externals = poetry
commands =
poetry install -v
poetry run pytest --color=yes --cov=ev_simulation_model --cov-append --cov-report=term-missing
[testenv:clean]
basepython = python3.9
allowlist_externals = poetry
skip_install = true
commands = poetry run coverage erase
[testenv:format]
basepython = python3.9
skip_install = true
allowlist_externals = poetry
commands =
poetry run isort ev_simulation_model tests
poetry run black ev_simulation_model tests
[testenv:lint]
basepython = python3.9
skip_install = true
allowlist_externals = poetry
commands =
poetry run flake8
poetry run mypy --strict