Commit fd395ce
committed
Add tox labels to more easily run just a subset of the thing
The label can be selected with `-m` on most tox commands, this is
equivalent to selecting the corresponding envs using `-e`.
- `test` runs all the tests, in all python versions
- `check` runs the non-test checks
- `pypy` and `cpy` run the tests for their respective Python
implementation
This is way more convenient when leveraging `posargs` as most of the
tools are not posargs-compatible. Also easier than typing the envs in
full. The only drawback is `tox list` does not display the labels.
Also use brace expansions for cleaner definitions (and easier
updates), in both envlist and labels.1 parent f6fb0e2 commit fd395ce
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
| |||
0 commit comments