Skip to content

Commit

Permalink
merged mypy and ruff environments for less space
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-abdelgawad committed May 31, 2024
1 parent 2da1d4e commit 99e4204
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[tox]
min_version = 4.0
envlist = pytest, ruff, mypy
envlist = pytest, ruff_and_mypy
isolated_build = true

[gh-actions]
python =
3.10: pytest, mypy, ruff
3.10: pytest, ruff_and_mypy

[testenv]
setenv =
Expand All @@ -18,13 +18,12 @@ deps =
commands =
pytest
; --basetemp={envtmpdir}

[testenv:ruff]
basepython = python3.10
deps = ruff
commands = ruff check src tests --exit-zero

[testenv:mypy]
[testenv:ruff_and_mypy]
basepython = python3.10
deps = mypy
commands = - mypy src --exclude tunit # ignore tunit for now
deps =
ruff
mypy
commands =
ruff check src tests --exit-zero
- mypy src --exclude tunit # ignore tunit for now

0 comments on commit 99e4204

Please sign in to comment.