forked from eht16/python-logstash-async
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
32 lines (28 loc) · 848 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
# -*- coding: utf-8 -*-
#
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE file for details.
[tox]
skip_missing_interpreters = true
envlist =
docs,py36,py37,py38,py39,pypy3
logstash_async_modules = logstash_async tests
[testenv]
deps =
flake8
isort
pylint
commands =
# linting and code analysis
{envbindir}/flake8 {[tox]logstash_async_modules}
{envbindir}/isort --check-only --diff {[tox]logstash_async_modules}
{envbindir}/pylint --rcfile=setup.cfg {[tox]logstash_async_modules}
# unit tests
{envbindir}/python -m unittest discover --start-directory tests --pattern '*_test.py'
[testenv:docs]
basepython = python3
deps =
sphinx
sphinx_rtd_theme
whitelist_externals = make
commands = make -C docs html BUILDDIR={envtmpdir} "SPHINXOPTS=-W -E"