-
Notifications
You must be signed in to change notification settings - Fork 52
/
tox.ini
33 lines (29 loc) · 856 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
# -*- 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,py38,py39,py310,py311,py312,pypy3
logstash_async_modules = logstash_async tests
[testenv]
deps =
flake8
isort
pylint
Django
Flask
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]
deps =
sphinx
sphinx_rtd_theme
allowlist_externals = make
commands = make -C docs html BUILDDIR={envtmpdir} "SPHINXOPTS=-W -E"