Skip to content

Commit 12012a3

Browse files
committed
Add new checks
1 parent a5fa691 commit 12012a3

1 file changed

Lines changed: 34 additions & 6 deletions

File tree

tox.ini

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
[tox]
2-
envlist=py{37,38,39,310,311,312,py3},pylint
2+
envlist=rufflint,ruffformatcheck,doc8,docs,rstcheck,build-check,py{38,39,310,311,312,py3}
33
skip_missing_interpreters=True
44

55
[testenv]
66
commands=
77
pytest {posargs}
88
deps=
99
pytest
10+
pytest-cov
1011
setenv=
1112
PY_IGNORE_IMPORTMISMATCH=1
1213

@@ -23,17 +24,44 @@ addopts=
2324
--ignore tests/plot_lengths_histogram_delitem.py
2425
testpaths=docs src/sortedcontainers tests
2526

26-
[testenv:pylint]
27-
deps=pylint<2.6
28-
commands=pylint src/sortedcontainers
27+
[testenv:rufflint]
28+
commands=ruff {toxinidir}
29+
deps=ruff
30+
31+
[testenv:ruffformatcheck]
32+
commands=ruff format --check {toxinidir}
33+
deps=ruff
34+
35+
[testenv:doc8]
36+
commands=doc8 docs --ignore-path docs/_build
37+
deps=doc8
38+
39+
[testenv:docs]
40+
allowlist_externals=make
41+
changedir=docs
42+
commands=make html
43+
deps=
44+
sphinx
45+
46+
[testenv:rstcheck]
47+
commands=rstcheck {toxinidir}/README.rst
48+
deps=rstcheck
49+
50+
[testenv:uploaddocs]
51+
allowlist_externals=rsync
52+
changedir=docs
53+
commands=
54+
rsync --rsync-path 'sudo -u herokuish rsync' -azP --stats --delete \
55+
_build/html/ \
56+
grantjenks:/srv/www/grantjenks.com/public/docs/sortedcontainers/
2957

3058
[testenv:build-check]
3159
description=Builds source and binary packages and uses twine check to validate
3260
skip_install=True
3361
changedir={envtmpdir}
3462
deps=
35-
pep517
63+
build
3664
twine
3765
commands=
38-
python -m pep517.build -b -s {toxinidir} -o {envtmpdir}/dist
66+
python -m build
3967
twine check {envtmpdir}/dist/*

0 commit comments

Comments
 (0)