mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-12 15:50:01 -08:00
chore: add testing and type checks to tox.ini
This commit is contained in:
37
tox.ini
37
tox.ini
@@ -1,26 +1,27 @@
|
||||
[tox]
|
||||
requires =
|
||||
tox>=4
|
||||
env_list = lint, type, py{310,311}
|
||||
env_list = lint, pyright, py{310,311}
|
||||
|
||||
[testenv]
|
||||
description = run unit tests
|
||||
deps =poetry
|
||||
commands =
|
||||
poetry install
|
||||
poetry run pytest
|
||||
|
||||
; [testenv]
|
||||
; description = run unit tests
|
||||
; deps =
|
||||
; pytest>=7
|
||||
; pytest-sugar
|
||||
; commands =
|
||||
; pytest {posargs:tests}
|
||||
;
|
||||
[testenv:lint]
|
||||
description = run linters
|
||||
skip_install = true
|
||||
deps =
|
||||
black==22.12
|
||||
commands = black {posargs:.}
|
||||
deps =poetry
|
||||
commands =
|
||||
poetry install
|
||||
poetry run black .
|
||||
|
||||
[testenv:type]
|
||||
description = run type checks
|
||||
deps =
|
||||
mypy>=0.991
|
||||
commands =
|
||||
mypy {posargs:src tests}
|
||||
[testenv:pyright]
|
||||
description = run type checking
|
||||
skip_install = true
|
||||
deps =poetry
|
||||
commands =
|
||||
poetry install --no-root
|
||||
poetry run pyright
|
||||
|
||||
Reference in New Issue
Block a user