-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
47 lines (41 loc) · 1.17 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
[tox]
skipsdist = True
envlist = lint, py36, py37, py38, py39, py310, py311
[testenv]
deps = -e .[dev]
commands =
pytest -sv
mypy sqlitecollections --strict
mypy tests --strict --no-warn-unused-ignores
[testenv:lint]
deps = -e .[dev]
commands =
black --line-length=120 --skip-string-normalization --target-version=py38 sqlitecollections tests
isort --profile=black sqlitecollections tests
[testenv:lint-check]
deps = -e .[dev]
commands =
black --check --line-length=120 --skip-string-normalization --target-version=py38 sqlitecollections tests
isort --check --profile=black sqlitecollections tests
[testenv:build-release]
passenv = TWINE_PASSWORD
setenv = TWINE_USERNAME = __token__
allowlist_externals = rm
deps =
build
twine
commands =
rm -fr {toxinidir}/dist
python -m build
python -m twine upload {toxinidir}/dist/*
[testenv:docs-release]
deps = -e .[docs]
commands =
mkdocs build
mkdocs gh-deploy
[testenv:py{36,37,38,39,310,311}-benchmark]
deps =
-e ./docs/scbenchmarker
commands =
python -m scbenchmarker --prefix={posargs:{envname}} benchmarking --timeout=2
python -m scbenchmarker --prefix={posargs:{envname}} render