forked from mondeja/check-jsonschema
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
67 lines (58 loc) · 1.41 KB
/
tox.ini
File metadata and controls
67 lines (58 loc) · 1.41 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
65
66
67
[tox]
envlist =
cov-clean
cov-report
py{310,39,38,37}
py{37,310}-{json5,pyjson5,tomli}
py{37,310}{,-tomli}-format
skip_missing_interpreters = true
minversion = 3.0.0
[testenv]
usedevelop = true
extras = dev
deps =
json5: json5
pyjson5: pyjson5
tomli: tomli
format: jsonschema[format]
commands = pytest --cov=src --cov-append --cov-report= {posargs}
depends =
py{37,38,39,310}{,-json5,-pyjson5,-tomli}: cov-clean
cov-report: py{37,38,39,310}{,-json5,-pyjson5,-tomli}
[testenv:cov-clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:cov-report]
deps = coverage
skip_install = true
commands = coverage report --skip-covered
[testenv:mypy]
deps = mypy
types-jsonschema
types-requests
commands = mypy src/ {posargs}
[testenv:twine-check]
skip_install = true
deps = twine
build
whitelist_externals = rm
commands_pre = rm -rf dist/
# check that twine validating package data works
commands = python -m build
twine check dist/*
[testenv:vendor-schemas]
commands = python ./scripts/vendor-schemas.py
[testenv:generate-hooks-config]
commands = python ./scripts/generate-hooks-config.py
[testenv:publish-release]
skip_install = true
deps = twine
build
# clean the build dir before rebuilding
whitelist_externals = rm
commands_pre = rm -rf dist/
commands = python -m build
twine upload dist/*
[pytest]
filterwarnings = error