forked from genialis/RNAnorm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
38 lines (34 loc) · 1.2 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
[tox]
envlist = py{38,39,310,311},docs,linters,package
skip_missing_interpreters = True
minversion = 3.5.0
isolated_build = true
[testenv]
extras =
docs: docs
package: package
py{38,39,310,311},linters: test
ignore_errors = true
commands =
# Run tests.
py{38,39,310,311}: pytest --verbose --cov=rnanorm
# Build documentation.
docs: sphinx-build docs build/sphinx -a -E -W
# Check code formating with black.
linters: black --check src tests
# Check code formating with flake8.
linters: flake8 src tests
# Check order of imports.
linters: isort --check-only --diff src tests
# Check documentation formatting (PEP 257).
linters: pydocstyle src/*
# Check type annotation
linters: mypy src
# Confirm that items checked into git are in sdist.
package: check-manifest
# Build the sdist and wheel.
# https://github.com/pypa/build
package: python -m build --outdir {toxworkdir}/package-test-dist
# Verify that long description will render correctly on PyPI.
# https://packaging.python.org/en/latest/guides/making-a-pypi-friendly-readme/#validating-restructuredtext-markup
package: twine check --strict {toxworkdir}/package-test-dist/*