-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathtox.ini
More file actions
33 lines (29 loc) · 672 Bytes
/
tox.ini
File metadata and controls
33 lines (29 loc) · 672 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
32
33
[tox]
envlist = lint, pylint, pep8, test
[vars]
# We don't want to run it on external submodules.
# Include any directories as needed in the future.
py_dirs = ./src ./tools ./tests
[testenv:lint]
allowlist_externals = bash
description = run linters flake8 and pylint
skip_install = true
deps =
flake8
pylint
pytest
requests
commands =
flake8 {[vars]py_dirs}
bash -c 'find {[vars]py_dirs} -name "*.py" -print0 | xargs -0 pylint'
[testenv:test]
description = run python tests for the tools
skip_install = true
setenv =
PYTHONPATH = {toxinidir}/tools
deps =
pytest
requests
commands =
pytest --fixtures tests/
pytest tests/ -v