forked from atlassian-api/atlassian-python-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
56 lines (46 loc) · 955 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
47
48
49
50
51
52
53
54
55
56
[base]
linting_targets = atlassian/ examples/ tests/
[tox]
envlist = py27,py3,flake8,black,mypy,bandit,doc8
skip_missing_interpreters = True
[flake8]
max-line-length = 120
exclude = .tox,.travis,docs
[pylint]
max-line-length = 120
[testenv]
deps = pytest
commands = pytest -v
extras = kerberos
[testenv:flake8]
basepython = python3
skip_install = true
deps = flake8
commands = flake8
[testenv:pylint]
basepython = python3
skip_install = true
deps = pylint
commands = pylint --rcfile=tox.ini {[base]linting_targets}
[testenv:black]
basepython = python3
skip_install = true
deps = black
commands = black --check --diff {[base]linting_targets}
[testenv:mypy]
basepython = python3
skip_install = true
deps = mypy
commands = mypy atlassian/
[testenv:bandit]
basepython = python3
skip_install = true
deps = bandit
commands = bandit -r atlassian/
[testenv:doc8]
basepython = python3
skip_install = true
deps =
sphinx
doc8
commands = doc8 docs/