This repository has been archived by the owner on Feb 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
73 lines (65 loc) · 1.29 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
66
67
68
69
70
71
72
73
[tox]
envlist =
{py27,py37}-coverage
bandit
pylint
flake8
docs
[testenv]
basepython =
py27: python2.7
py37: python3.7
deps =
pytest
coverage
commands =
coverage run -m pytest tests/test.py -v
coverage report -m flexdict/__init__.py
[testenv:bandit]
description = Runs security checks via bandit.
basepython = python3.7
deps = bandit
commands = bandit -r flexdict/
[testenv:pylint]
description = Runs the linter.
basepython = python3.7
deps =
pytest
pylint
commands =
pylint flexdict/ tests/test.py --rcfile .pylintrc
[testenv:flake8]
description = Runs the formatter.
basepython = python3.7
deps = flake8
commands = flake8 flexdict/ tests/
[testenv:docs]
description = Builds the documentation.
basepython = python3.7
deps =
sphinx
alabaster
recommonmark
commands =
sphinx-build -E -W -b html docs/source/ docs/build/html
[testenv:build]
basepython = python3
skip_install = true
deps =
wheel
setuptools
commands =
python setup.py sdist bdist_wheel
[testenv:release]
basepython = python3
skip_install = true
deps =
{[testenv:build]deps}
twine >= 1.5.0
commands =
{[testenv:build]commands}
twine upload --skip-existing dist/*
[flake8]
max-complexity = 10
import-order-style = google
application-import-names = flake8