Skip to content

Commit

Permalink
Merge pull request #2755 from ssbarnea/fix/tox4
Browse files Browse the repository at this point in the history
Fix tox configuration
  • Loading branch information
willmcgugan committed Jan 15, 2023
2 parents b7ac6bb + 765f81a commit d919868
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[tox]
minversion = 3.9.0
minversion = 4.0.0
envlist =
lint
docs
py{37,38,39,310}
py{37,38,39,310,311}
isolated_build = True

[testenv]
Expand All @@ -27,10 +27,20 @@ commands =

[testenv:lint]
description = Runs all linting tasks
commands_pre =
poetry install -vv --with lint
commands =
black .
mypy -p rich --config-file= --ignore-missing-imports --no-implicit-optional --warn-unreachable
; poetry install --only dev
# as long GHA pipelines are not configured to use tox, we should call
# `make` in order to make testing similar and prevent divergence.
make format-check
make typecheck
deps =
poetry
skip_install = true
allowlist_externals =
make
poetry

[testenv:docs]
description = Builds documentation
Expand Down

0 comments on commit d919868

Please sign in to comment.