1
1
[tox]
2
- minversion = 4
3
- envlist =
2
+ requires =
3
+ tox>=4.2
4
+ env_list =
4
5
fix
5
6
py311
6
7
py310
@@ -11,7 +12,6 @@ envlist =
11
12
coverage
12
13
docs
13
14
readme
14
- isolated_build = true
15
15
skip_missing_interpreters = true
16
16
17
17
[testenv]
@@ -20,9 +20,9 @@ package = wheel
20
20
wheel_build_env = .pkg
21
21
extras =
22
22
testing
23
- passenv =
23
+ pass_env =
24
24
PYTEST_ADDOPTS
25
- setenv =
25
+ set_env =
26
26
COVERAGE_FILE = {toxworkdir}{/}.coverage.{envname}
27
27
commands =
28
28
pytest {tty:--color =yes} {posargs: \
@@ -34,19 +34,19 @@ commands =
34
34
35
35
[testenv:fix]
36
36
description = format the code base to adhere to our styles, and complain about what we cannot do automatically
37
- basepython = python3.10
37
+ base_python = python3.10
38
38
skip_install = true
39
39
deps =
40
- pre-commit>=3.2.1
40
+ pre-commit>=3.2.2
41
41
commands =
42
42
pre-commit run --all-files --show-diff-on-failure
43
43
python -c ' import pathlib; print("hint: run \{\} install to add checks as pre-commit hook".format(pathlib.Path(r"{envdir}") / "bin" / "pre-commit"))'
44
44
45
45
[testenv:type]
46
46
description = run type check on code base
47
47
deps =
48
- mypy ==1.1.1
49
- setenv =
48
+ mypy ==1.2
49
+ set_env =
50
50
{tty:MYPY_FORCE_COLOR = 1}
51
51
commands =
52
52
mypy --strict src/filelock
@@ -57,13 +57,13 @@ description = combine coverage files and generate diff (against DIFF_AGAINST def
57
57
skip_install = true
58
58
deps =
59
59
covdefaults>=2.3
60
- coverage[toml]>=7.2.2
60
+ coverage[toml]>=7.2.3
61
61
diff-cover>=7.5
62
62
extras =
63
63
parallel_show_output = true
64
- passenv =
64
+ pass_env =
65
65
DIFF_AGAINST
66
- setenv =
66
+ set_env =
67
67
COVERAGE_FILE = {toxworkdir}/.coverage
68
68
commands =
69
69
coverage combine
@@ -72,11 +72,11 @@ commands =
72
72
coverage html -d {toxworkdir}/htmlcov
73
73
diff-cover --compare-branch {env:DIFF_AGAINST:origin/main} {toxworkdir}/coverage.xml
74
74
depends =
75
- py310
76
75
py311
77
- py37
78
- py38
76
+ py310
79
77
py39
78
+ py38
79
+ py37
80
80
81
81
[testenv:docs]
82
82
description = build documentation
@@ -99,7 +99,7 @@ commands =
99
99
100
100
[testenv:dev]
101
101
description = generate a DEV environment
102
- usedevelop = true
102
+ package = editable
103
103
extras =
104
104
docs
105
105
testing
0 commit comments