-
Notifications
You must be signed in to change notification settings - Fork 62
/
tox.ini
62 lines (57 loc) · 2.13 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
[tox]
envlist = py38
[testenv]
basepython = python3.8
deps =
--requirement={toxinidir}/requirements.txt
--requirement={toxinidir}/requirements-dev.txt
usedevelop = true
passenv = USER PIP_INDEX_URL
setenv =
YARN_REGISTRY = {env:NPM_CONFIG_REGISTRY:https://registry.npmjs.org/}
whitelist_externals=
yarn
commands =
# we have a pre-commit hook that runs eslint over our FE files, but our
# current setup means that the necessary binaries won't be installed
# automatically, so we manually invoke yarn to install things
yarn install
pre-commit install -f --install-hooks
pre-commit run --all-files
# tron has been around for a while, so we'll need to slowly add types or make an effort
# to get it mypy-clean in one shot - until then, let's only check files that we've added types to
mypy --pretty tron/kubernetes.py tron/commands/backfill.py bin/tronctl tron/utils/scribereader.py
check-requirements
# optionally install yelpy requirements - this is after check-requirements since
# check-requirements doesn't understand these extra requirements
-pip install -r yelp_package/extra_requirements_yelp.txt
# we then run tests at the very end so that we can run tests with yelpy requirements
py.test -s {posargs:tests}
[flake8]
ignore = E501,E265,E241,E704,E251,W504,E231,W503,E203
[testenv:docs]
deps =
--requirement={toxinidir}/requirements-docs.txt
--requirement={toxinidir}/requirements.txt
whitelist_externals=
mkdir
commands=
/bin/rm -rf docs/source/generated/
# The last arg to apidoc is a list of excluded paths
sphinx-apidoc -f -e -o docs/source/generated/ tron
mkdir -p docs
sphinx-build -b html -d docs/_build docs/source docs/_build/html
[testenv:example-cluster]
whitelist_externals=docker-compose
deps=
docker-compose
commands=
docker-compose -f example-cluster/docker-compose.yml build playground
docker-compose -f example-cluster/docker-compose.yml run -p 8089:8089 playground
docker-compose -f example-cluster/docker-compose.yml down
[testenv:itest]
commands =
make deb_bionic
make _itest_bionic
make deb_jammy
make _itest_jammy