-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
57 lines (49 loc) · 1.36 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
[tox]
envlist = yaml,flake8,bashate,isort,jsonschema,py37,commit-message-validator
skipsdist=true
[testenv]
setenv =
PYWIKIBOT_NO_USER_CONFIG = 1
# Since pywikibot fallback to the user home directory:
HOME={envdir}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands = nosetests {posargs}
allowlist_externals =
bash
basepython = python3.7
[testenv:flake8]
deps =
flake8==3.2.1
commands = flake8
[testenv:bashate]
deps = bashate==2.1.0
commands =
bash -c "grep --recursive --binary-files=without-match \
--files-with-match '^.!.*\(ba\)\?sh$' \
--exclude-dir .tox \
--exclude-dir .git \
--exclude-dir .venv \
--exclude-dir vendor \
--exclude-dir node_modules \
{toxinidir} | xargs bashate --error . --verbose --ignore=E006"
[testenv:isort]
deps = isort==4.2.15
commands =
isort {posargs:--check-only --diff} --recursive --verbose \
--skip .git --skip .tox --skip .venv --skip vendor --skip node_modules
[testenv:yaml]
deps = yamllint
commands = yamllint {toxinidir}/
[testenv:jsonschema]
deps = check-jsonschema
allowlist_externals={toxinidir}/.jsonschema_cmd.sh
commands =
{toxinidir}/.jsonschema_cmd.sh
[flake8]
exclude = .venv,.tox
ignore = E501,F841
[testenv:commit-message-validator]
deps = commit-message-validator
commands = commit-message-validator