-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
53 lines (45 loc) · 1.01 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
# Copyright 2024 Secure Sauce LLC
# SPDX-License-Identifier: BUSL-1.1
[tox]
minversion = 3.2.0
envlist = py313
[testenv]
usedevelop = True
install_command = pip install {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
pytest {posargs}
passenv = http_proxy, HTTP_PROXY, https_proxy, HTTPS_PROXY, no_proxy, NO_PROXY
[testenv:format]
skip_install = true
deps =
pre-commit
commands =
pre-commit run --all-files --show-diff-on-failure
[testenv:pep8]
skip_install = true
ignore_errors = true
deps = {[testenv]deps}
.
usedevelop = False
commands = flake8 {posargs} precli
-{[testenv:pylint]commands}
[testenv:pylint]
commands = -pylint --rcfile=pylintrc precli
[testenv:docs]
deps = -r{toxinidir}/docs/requirements.txt
commands =
mkdocs build
[testenv:clean]
skip_install = true
deps = pyclean
commands = pyclean {posargs:. --debris}
[pytest]
minversion = 6.0
addopts = -v
testpaths =
tests