-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
72 lines (62 loc) · 1.17 KB
/
tox.ini
File metadata and controls
72 lines (62 loc) · 1.17 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
68
69
70
71
72
[gh]
python =
3.12 = test
3.11 = test
3.10 = test
3.9 = test
[tox]
envlist=py{312, 311,310,39}
[testenv:flake8]
skip_install = true
deps =
flake8 >= 3.6
nbqa
commands =
flake8
[testenv:black]
basepython = python3
skip_install = true
deps =
black >= 19.10b0
nbqa
commands =
black --check .
[testenv:test]
deps = -rdev_requirements.txt
commands = pytest {posargs:--verbose --doctest-glob README.md}
[testenv:black-run]
basepython = python3
skip_install = true
deps =
black >= 19.10b0
nbqa
commands =
black .
[testenv:pypi-publish]
basepython = python3
skip_install = true
allowlist_externals = rm
deps =
twine
passenv =
TWINE_PASSWORD
setenv =
TWINE_USERNAME = {env:TWINE_USERNAME:__token__}
commands =
rm -rf build dist .egg .egg-info
python3 setup.py sdist bdist_wheel
twine check dist/*
twine upload --skip-existing dist/*
[testenv:check-manifest]
basepython = python3
skip_install = true
deps = check-manifest
commands = check-manifest
[testenv:mypy]
deps = mypy
commands = mypy --install-types --non-interactive {posargs} resourcecode/
[flake8]
format = pylint
ignore = W503, E203, E731, E231
max-line-length = 120
exclude = doc/*,.tox/*