-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
92 lines (73 loc) · 1.57 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
#
# To convert kubernetes manifest files to RDF, run:
# tox -e kubernetes
#
[tox]
envlist = py3, safety
skipsdist=True
[testenv]
deps =
-rrequirements.txt
-rrequirements-dev.txt
# Uncomment here to set an extra PIP_INDEX_URL
# setenv =
# PIP_EXTRA_INDEX_URL = https://mypypiserver.org
setenv =
PYTHONPATH=:.:
passenv =
TEST_KUBERDF_FILE
# To show pytest logs in console, use
# tox -- --log-cli-level=DEBUG
commands =
pytest tests {posargs}
[testenv:docs]
deps = rdflib
commands =
python scripts/build.py
[testenv:kube-to-rdf]
commands =
python -m kuberdf {posargs}
[testenv:safety]
deps =
-rrequirements.txt
-rrequirements-dev.txt
safety
setenv =
PYTHONPATH=:.:
commands =
safety check --short-report -r requirements.txt
[flake8]
# Ignore long lines in flake8 because
# they are managed by black and we
# want to support links.
max-line-length = 150
# Ignore whitespace before ':'
# because black adds it.
extend-ignore = E203
[testenv:release]
# Release with tox via:
#
# tox -e release -- $PARAMETERS
#
# passing the repo references you would set via
# twine, eg:
# --repository-url https://test.pypi.org/legacy/
#
# To pass
deps =
wheel
twine
# Limit TWINE_* to this section.
passenv =
TWINE_USERNAME
TWINE_PASSWORD
TWINE_REPOSITORY_URL
commands =
# rm dist -rf
python setup.py bdist_wheel # sdist, or whatever
twine upload {posargs} dist/*
# Uncomment the following section if you want to
# test the installation on the test pypi
# [testenv:test-release]
#commands =
# pip install --index-url=https://test.pypi.org/simple