forked from npilon/pymantic
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtox.ini
46 lines (41 loc) · 813 Bytes
/
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
[tox]
[testenv]
commands =
pytest {posargs:}
extras =
testing
[testenv:lint]
skip_install = true
commands =
flake8 src tests
isort --check-only --df src/pymantic tests
black --check --diff src/pymantic tests
# build sdist/wheel
python -m build .
twine check dist/*
deps =
flake8~=5.0.4
black~=22.12.0
isort~=5.10
build
twine
[testenv:format]
skip_install = true
commands =
isort src/pymantic tests
black src/pymantic tests
deps =
black~=22.12.0
isort~=5.10
[testenv:build]
skip_install = true
commands =
# clean up build/ and dist/ folders
python -c 'import shutil; shutil.rmtree("build", ignore_errors=True)'
# build sdist/wheel
python -m build .
# Verify all is well
twine check dist/*
deps =
build
twine