forked from atlassian-api/atlassian-python-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
65 lines (57 loc) · 1.23 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[base]
linting_targets = atlassian/ examples/ tests/
[tox]
envlist = py3,flake8,black,mypy,bandit,doc8
skip_missing_interpreters = True
[testenv]
deps =
pytest
pytest-cov
coverage
requests
beautifulsoup4
commands =
coverage erase
pytest -v --cov=atlassian --cov-branch --cov-report=xml
coverage html
extras = kerberos
parallel_show_output = true
[testenv:flake8]
basepython = python3
exclude = __pycache__
skip_install = true
deps =
flake8
commands = flake8 {[base]linting_targets}
[testenv:pylint]
basepython = python3
skip_install = true
deps = pylint
commands = pylint {[base]linting_targets}
[testenv:black]
basepython = python3
target-version = ["py37"]
skip_install = true
deps = black
commands = black --check --diff {[base]linting_targets} --exclude __pycache__
[testenv:mypy]
basepython = python3
skip_install = true
deps =
mypy>=0.812
commands = mypy --install-types --non-interactive atlassian/
[testenv:bandit]
basepython = python3
skip_install = true
deps =
importlib-metadata<=4.13.0
bandit
commands = bandit -r atlassian/
[testenv:doc8]
basepython = python3
skip_install = true
deps =
importlib-metadata<=4.13.0
sphinx
doc8
commands = doc8 --ignore-path docs/_build/ docs/