forked from near/nearup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
72 lines (62 loc) · 1.3 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
[tox]
envlist = py3
[testenv]
deps =
pytest
pytest-ordering
requests
commands =
pytest tests
[pytest]
log_cli_level = INFO
[testenv:coverage]
deps =
pytest >= 6.0.1
pytest-cov
pytest-ordering
requests
commands =
pytest --cov-report term --cov-report html:htmlcov --cov=nearuplib tests
[testenv:style]
deps =
yapf
commands = yapf --diff -r nearup ./**/*.py
[testenv:lint]
deps =
pylint >= 2.6.0
pytest >= 6.0.1
requests
allowlist_externals = bash
commands = bash ./scripts/pylint.sh
[MESSAGES CONTROL]
disable=missing-module-docstring,
missing-function-docstring,
logging-fstring-interpolation,
logging-fstring-interpolation,
fixme,
broad-except,
duplicate-code,
too-many-arguments,
consider-using-with,
unspecified-encoding,
too-many-locals,
[DESIGN]
# Maximum number of arguments for function / method
max-args=10
max-branches=15
[testenv:build]
deps =
wheel
setuptools
commands = python setup.py -q sdist bdist_wheel
[testenv:release]
passenv = TWINE_USERNAME TWINE_PASSWORD
deps =
{[testenv:build]deps}
twine >= 3.2.0
commands =
{[testenv:build]commands}
twine upload --non-interactive dist/*
[testenv:clean]
allowlist_externals = rm
commands = rm -rf dist nearup.egg-info build