| 1 | [tox] |
| 2 | envlist = |
| 3 | lint, |
| 4 | py{38,39,310,311,312,313}, |
| 5 | |
| 6 | [gh-actions] |
| 7 | python = |
| 8 | 3.8: py38 |
| 9 | 3.9: py39 |
| 10 | 3.10: py310, lint |
| 11 | 3.11: py311 |
| 12 | 3.12: py312 |
| 13 | 3.13: py313 |
| 14 | |
| 15 | [testenv] |
| 16 | deps = |
| 17 | pytest |
| 18 | commands = pytest {posargs} |
| 19 | |
| 20 | [testenv:lint] |
| 21 | basepython = python3.10 |
| 22 | skip_install = true |
| 23 | deps = |
| 24 | # Pinned deliberately. There is no ruff config in this repo, so the linter |
| 25 | # runs on whatever its current release considers the default rule set, and |
| 26 | # 0.16.0 enabled families that were previously opt-in (UP031, B006, I001, |
| 27 | # BLE001, ...). That turned every open pull request red at once, on 144 |
| 28 | # findings in code nobody had touched, and only in the 3.10 job — the one |
| 29 | # this env is tied to. Bump this on purpose, in a commit that also fixes |
| 30 | # whatever the new rules find. |
| 31 | ruff==0.15.21 |
| 32 | commands = |
| 33 | ruff check --exit-non-zero-on-fix jellyfin_apiclient_python tests |