Harrison Mutai | 71437f9 | 2024-08-29 10:38:26 +0000 | [diff] [blame] | 1 | [tox] |
| 2 | envlist = py38, py39, py310, py311, py312, lint |
| 3 | |
| 4 | [testenv] |
| 5 | allowlist_externals = poetry |
| 6 | commands = |
| 7 | poetry install -v --with dev |
| 8 | poetry run pytest |
| 9 | |
| 10 | [testenv:format] |
| 11 | description = Run linters and type checks |
| 12 | skip_install = true |
| 13 | allowlist_externals = poetry |
| 14 | commands = |
| 15 | poetry run black . |
| 16 | poetry run isort . |
| 17 | |
| 18 | [testenv:lint] |
| 19 | description = Run linters and type checks |
| 20 | skip_install = true |
| 21 | allowlist_externals = poetry |
| 22 | commands = |
| 23 | poetry run black --check . |
| 24 | poetry run isort --check-only . |
| 25 | poetry run mypy . |
| 26 | poetry run darglint tlc tests |