This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
tox.ini
101 lines (90 loc) · 2.86 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[tox]
envlist = py38
skipsdist = true
tox_pip_extensions_ext_venv_update = true
[testenv]
passenv = HOME SSH_AUTH_SOCK USER LANG PIP_INDEX_URL
basepython = python3.8
envdir = virtualenv_run
usedevelop = true
deps =
-rrequirements.txt
-rrequirements-dev.txt
commands =
check-requirements -v
# optionally install yelpy requirements - this is fine to fail in GHA
# this is also explicitly *after* check-requirements as it does not
# understand these extra files
-pip install -rextra-requirements-yelp.txt -rextra-requirements-yelp-dev.txt
mypy clusterman tests
coverage erase
coverage run -m pytest tests
behave itests --no-source --no-timings --tags=-skip {posargs}
coverage report --show-missing --skip-covered --fail-under=70
pre-commit install -f --install-hooks
pre-commit run --all-files
[testenv:external]
envdir = virtualenv_run
deps =
{[testenv]deps}
-eexamples/clusterman_metrics
[testenv:yelp]
envdir = virtualenv_run
deps =
{[testenv]deps}
-rextra-requirements-yelp.txt
-rextra-requirements-yelp-dev.txt
[testenv:completions]
envdir = .tox/completions
usedevelop = true
deps =
{[testenv]deps}
-rextra-requirements-yelp.txt
-rextra-requirements-yelp-dev.txt
commands =
static_completion clusterman bash --write-vendor-directory completions
static_completion clusterman zsh --write-vendor-directory completions
static_completion clusterman fish --write-vendor-directory completions
[testenv:docs]
envdir = .tox/docs
deps =
-rrequirements-docs.txt
changedir = docs
commands =
sphinx-build -b html -d build/doctrees source build/html
[testenv:virtualenv_run-dev]
deps =
-rrequirements.txt
-rrequirements-dev.txt
commands =
[testenv:virtualenv_run]
deps = -rrequirements.txt
usedevelop = false
commands =
[testenv:acceptance]
basepython = python3.8
envdir = .tox/acceptance
passenv = COMPOSE_PROJECT_NAME PIP_INDEX_URL
deps =
docker-compose
boto3
simplejson
urllib3<1.27
cryptography==39.0.1
commands =
docker-compose -f acceptance/docker-compose.yaml down
docker-compose -f acceptance/docker-compose.yaml pull
docker-compose -f acceptance/docker-compose.yaml build --build-arg DOCKER_REGISTRY={env:DOCKER_REGISTRY:docker-dev.yelpcorp.com} --build-arg IMAGE_NAME={env:JAMMY_IMAGE_NAME:jammy_pkgbuild}
docker-compose -f acceptance/docker-compose.yaml up -d zookeeper mesosmaster mesosagent moto-ec2 moto-s3 moto-dynamodb moto-sts
[flake8]
exclude = .git,__pycache__,.tox,docs,virtualenv_run
filename = *.py,*.wsgi
max-line-length = 120
ignore = E121,E123,E126,E133,E203,E226,E231,E241,E242,E704,W503,W504,W505,W605
[pytest]
norecursedirs = .* docs virtualenv_run
filterwarnings =
# ignore a bunch of noisy warnings that we can't do anything about
ignore:invalid escape sequence:DeprecationWarning:.*(moto|boto|parsedatetime|samtranslator)
[pycodestyle]
ignore = E731