-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
48 lines (42 loc) · 1.44 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
[tox]
envlist = py{38, 39, 310, 311, 312}
# Define the minimal tox version required to run;
# if the host tox is less than this the tool with create an environment and
# provision it with a tox that satisfies it under provision_tox_env.
# At least this version is needed for PEP 517/518 support.
minversion = 3.3.0
# Activate isolated build environment. tox will use a virtual environment
# to build a source distribution from the source tree. For build tools and
# arguments use the pyproject.toml file as specified in PEP-517 and PEP-518.
isolated_build = true
requires =
# resolve impimporter deprecation in pip for python 3.12
# https://ubuntuhandbook.org/index.php/2023/10/fix-broken-pip-python-312-ubuntu/
pip >= 23.3.2
skip_missing_interpreters = true
[testenv]
deps =
check-manifest >= 0.42
# If your project uses README.rst, uncomment the following:
# readme_renderer
flake8
pytest
build
twine
# test dependencies
pytz
deepdiff
commands =
check-manifest --ignore 'tox.ini,tests/**,demo.py,requirements.txt,terraform/**,.idea/**,*.md'
python -m build
python -m twine check dist/*
flake8 .
py.test --rootdir={envsitepackagesdir} tests {posargs}
[flake8]
exclude = .tox,*.egg,build,data,venv,demo.py
select = E,W,F
ignore=E501,W503,W291
# black compatability
# see https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html
max-line-length = 88
extend-ignore = E203