| 1 | # Tox (http://tox.testrun.org/) is a tool for running tests |
| 2 | # in multiple virtualenvs. This configuration file will run the |
| 3 | # test suite on all supported python versions. To use it, "pip install tox" |
| 4 | # and then run "tox" from this directory. |
| 5 | |
| 6 | [tox] |
| 7 | minversion = 4.4 |
| 8 | envlist = lint,py39,py310,py311,py312,py313 |
| 9 | |
| 10 | [testenv] |
| 11 | description = |
| 12 | Run unit tests. |
| 13 | deps = |
| 14 | pytest |
| 15 | pytest-cov |
| 16 | commands = |
| 17 | pytest -Wall --cov=click_man --cov-report term-missing {posargs} |
| 18 | |
| 19 | [testenv:lint] |
| 20 | description = |
| 21 | Run style checks. |
| 22 | skip_install = true |
| 23 | deps = |
| 24 | pre-commit |
| 25 | commands = |
| 26 | pre-commit run --all-files --show-diff-on-failure |