Skip to content

Commit d919868

Browse files
authored
Merge pull request #2755 from ssbarnea/fix/tox4
Fix tox configuration
2 parents b7ac6bb + 765f81a commit d919868

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

tox.ini

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[tox]
2-
minversion = 3.9.0
2+
minversion = 4.0.0
33
envlist =
44
lint
55
docs
6-
py{37,38,39,310}
6+
py{37,38,39,310,311}
77
isolated_build = True
88

99
[testenv]
@@ -27,10 +27,20 @@ commands =
2727

2828
[testenv:lint]
2929
description = Runs all linting tasks
30+
commands_pre =
31+
poetry install -vv --with lint
3032
commands =
31-
black .
32-
mypy -p rich --config-file= --ignore-missing-imports --no-implicit-optional --warn-unreachable
33+
; poetry install --only dev
34+
# as long GHA pipelines are not configured to use tox, we should call
35+
# `make` in order to make testing similar and prevent divergence.
36+
make format-check
37+
make typecheck
38+
deps =
39+
poetry
3340
skip_install = true
41+
allowlist_externals =
42+
make
43+
poetry
3444

3545
[testenv:docs]
3646
description = Builds documentation

0 commit comments

Comments
 (0)