-
Notifications
You must be signed in to change notification settings - Fork 14
/
tox.ini
46 lines (37 loc) · 931 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
43
44
45
46
# Copyright (c) 2021 LG Electronics
# SPDX-License-Identifier: Apache-2.0
[tox]
envlist = test_run
skipdist = true
[testenv]
install_command = pip install {opts} {packages}
allowlist_externals =
cat
rm
ls
pytest
setenv =
PYTHONPATH=.
[flake8]
max-line-length = 130
exclude = .tox/*
[pytest]
filterwarnings = ignore::DeprecationWarning
[testenv:test_run]
deps =
-r{toxinidir}/requirements-dev.txt
commands =
pytest tests/test_tox.py::test_run --maxfail=1 --disable-warnings --cache-clear
[testenv:release]
deps =
-r{toxinidir}/requirements-dev.txt
commands =
pytest tests/test_tox.py::test_help_command tests/test_tox.py::test_scan_command \
tests/test_tox.py::test_exclude_command tests/test_tox.py::test_json_command \
--maxfail=1 --disable-warnings
python tests/cli_test.py
pytest -v --flake8
[testenv:flake8]
deps = flake8
commands =
pytest tests/test_tox.py::test_flake8