|
| 1 | +"""Nox configuration file.""" |
| 2 | + |
1 | 3 | import nox |
2 | 4 |
|
3 | 5 |
|
4 | | -@nox.session(python=["3.9", "3.10", "3.11"]) |
| 6 | +@nox.session(python=["3.9", "3.10", "3.11", "3.12"]) |
5 | 7 | @nox.parametrize("all_deps", [True, False]) |
6 | | -def pytest(session, all_deps): |
| 8 | +def pytest(session: nox.Session, all_deps: bool) -> None: |
| 9 | + """Run pytest with optional dependencies.""" |
7 | 10 | session.install(".[testing,other]" if all_deps else ".[testing]") |
8 | 11 | session.run("coverage", "erase") |
9 | 12 | session.run("pytest") |
10 | 13 |
|
11 | 14 |
|
12 | 15 | @nox.session(python="3.11") |
13 | | -def pytest_typeguard(session): |
| 16 | +def pytest_typeguard(session: nox.Session) -> None: |
| 17 | + """Run pytest with typeguard.""" |
14 | 18 | session.install(".[testing,other]") |
15 | 19 | session.run("coverage", "erase") |
16 | 20 | session.run("pytest", "--typeguard-packages=adaptive") |
17 | 21 |
|
18 | 22 |
|
19 | 23 | @nox.session(python="3.11") |
20 | | -def coverage(session): |
| 24 | +def coverage(session: nox.Session) -> None: |
| 25 | + """Generate coverage report.""" |
21 | 26 | session.install("coverage") |
22 | 27 | session.install(".[testing,other]") |
23 | 28 | session.run("pytest") |
|
0 commit comments