-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
64 lines (56 loc) · 1.59 KB
/
tox.ini
File metadata and controls
64 lines (56 loc) · 1.59 KB
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
# Tox configuration file
# Read more under https://tox.wiki/
[tox]
minversion = 3.24
envlist = default
isolated_build = True
[testenv]
description = Invoke pytest to run automated tests
setenv =
TOXINIDIR = {toxinidir}
deps =
-r requirements.txt
passenv =
HOME
SETUPTOOLS_*
extras =
testing
commands =
pytest {posargs}
# To run `tox -e lint` you need to make sure you have a
# `.pre-commit-config.yaml` file. See https://pre-commit.com
[testenv:lint]
description = Perform static analysis and style checks
skip_install = True
deps =
prek==0.3.5
passenv =
HOMEPATH
PROGRAMDATA
SETUPTOOLS_*
commands =
prek run --all-files {posargs:--show-diff-on-failure}
[testenv:clean]
description = Remove old distribution files and temporary build artifacts (./build and ./dist)
skip_install = True
changedir = {toxinidir}
deps =
passenv =
SETUPTOOLS_*
commands =
python -c 'import shutil; [shutil.rmtree(p, True) for p in ("build", "dist", "docs/_build")]'
python -c 'import pathlib, shutil; [shutil.rmtree(p, True) for p in pathlib.Path("src").glob("*.egg-info")]'
[testenv:build]
description = Build the package in isolation according to PEP517, see https://github.com/pypa/build
# https://setuptools.pypa.io/en/stable/build_meta.html#how-to-use-it
skip_install = True
changedir = {toxinidir}
deps =
build[virtualenv]==1.4.1
pip==26.0.1
passenv =
SETUPTOOLS_*
commands =
python -m build {posargs}
# By default, both `sdist` and `wheel` are built. If your sdist is too big or you don't want
# to make it available, consider running: `tox -e build -- --wheel`