generated from par-tec/python-cookiecutter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
79 lines (65 loc) · 1.46 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
[tox]
envlist = py3
# By default, we do not publish a module.
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=:.:
# To show pytest logs in console, use
# tox -- --log-cli-level=DEBUG
commands =
pytest {posargs}
[testenv:safety]
# Tune up this section (e.g., if safety does not use requirement files.)
deps =
-rrequirements.txt
-rrequirements-dev.txt
safety
setenv =
PYTHONPATH=:.:
commands =
safety check --short-report -r requirements.txt
[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 =
build
twine
wheel
# Limit TWINE_* to this section.
passenv =
TWINE_USERNAME
TWINE_PASSWORD
TWINE_REPOSITORY_URL
commands =
# rm dist -rf
python -m build # 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
#
# Tools configuration.
#
[flake8]
# Ignore long lines in flake8 because
# they are managed by black and we
# want to support links.
max-line-length = 150
# Disable E203 because black correctly handles whitespaces before ':'.
extend-ignore = E203