-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
42 lines (37 loc) · 863 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
[tox]
isolated_build = True
envlist = python{3.7}-{format,test,check-format}
skipsdist = True
usedevelop = True
[testenv:test]
basepython = python3.7
commands =
coverage run -m pytest \
-v --cov=src \
--cov-report=xml:test_reports/coverage.xml \
--junitxml=test_reports/junit.xml {posargs:tests}
[testenv:check-format]
basepython = python3.7
deps =
black
isort
skip_install = true
commands =
isort code_genie tests -c --diff --line-length 120
black code_genie tests --line-length 120 --diff --check
[testenv:format]
basepython = python3.7
deps =
black
isort
skip_install = true
commands =
isort code_genie tests --line-length 120
black code_genie tests --line-length 120
[flake8]
show-source = true
max-line-length = 120
exclude = .tox,.git,dist,doc,*.egg,build
[isort]
profile = black
known_first_party=src