-
Notifications
You must be signed in to change notification settings - Fork 7
/
tox.ini
51 lines (45 loc) · 1.15 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
[tox]
skipsdist = True
envlist = unit, functional
skip_missing_interpreters = True
[testenv]
basepython = python3
setenv =
PYTHONPATH = {toxinidir}/lib/:{toxinidir}
passenv = HOME
[testenv:unit]
commands =
coverage run -m unittest discover -s {toxinidir}/tests/unit -v
coverage report \
--omit tests/*,mod/*,.tox/*
coverage html \
--omit tests/*,mod/*,.tox/*
deps = -r{toxinidir}/tests/unit/requirements.txt
[testenv:functional]
changedir = {toxinidir}/tests/functional
commands = functest-run-suite {posargs}
deps = -r{toxinidir}/tests/functional/requirements.txt
[testenv:lint]
commands = flake8 {posargs} charm-slurmd/src/ charm-slurmdbd/src/ charm-slurmctld/src/ charm-slurmrestd/src/
deps =
flake8
flake8-docstrings
flake8-import-order
flake8-builtins
pep8-naming
flake8-colors
[flake8]
exclude =
.git,
__pycache__,
.tox,
mod,
max-line-length = 99
max-complexity = 10
docstring-convention = google
ignore = E126, E127, E241, E261, E265, E501, D202, D204, I100, I201, W503
[isort]
lines_after_imports = 2
# ignore from..import vs import while sorting a section
force_sort_within_sections = 1
profile = black