forked from benoitc/gunicorn
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
51 lines (46 loc) · 1.14 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
[tox]
envlist = py{37,38,39,310,311,py3}, lint, docs-lint, pycodestyle
skipsdist = false
; Can't set skipsdist and use_develop in tox v4 to true due to https://github.com/tox-dev/tox/issues/2730
[testenv]
use_develop = true
commands = pytest --cov=gunicorn {posargs}
deps =
-rrequirements_test.txt
[testenv:lint]
commands =
pylint -j0 \
gunicorn \
tests/test_arbiter.py \
tests/test_config.py \
tests/test_http.py \
tests/test_invalid_requests.py \
tests/test_logger.py \
tests/test_pidfile.py \
tests/test_sock.py \
tests/test_ssl.py \
tests/test_statsd.py \
tests/test_systemd.py \
tests/test_util.py \
tests/test_valid_requests.py
deps =
pylint<2.7
[testenv:docs-lint]
allowlist_externals =
rst-lint
bash
grep
deps =
restructuredtext_lint
pygments
commands =
rst-lint README.rst docs/README.rst
bash -c "(set -o pipefail; rst-lint --encoding utf-8 docs/source/*.rst | grep -v 'Unknown interpreted text role\|Unknown directive type'); test $? == 1"
[testenv:pycodestyle]
commands =
pycodestyle gunicorn
deps =
pycodestyle
[pycodestyle]
max-line-length = 120
ignore = E129,W503,W504,W606