-
Notifications
You must be signed in to change notification settings - Fork 124
/
tox.ini
38 lines (33 loc) · 769 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[tox]
ignore_basepython_conflict = true
envlist = mypy,ruff,ruff-format,py39,py310,py311,py312
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312, mypy, ruff, ruff-format
[testenv]
basepython = python3
deps = -rtests/requirements.txt
commands = pytest -v {posargs}
[testenv:ruff]
deps = ruff
commands = ruff check
[testenv:ruff-format]
deps = ruff
commands = ruff format --check
[testenv:mypy]
commands =
mypy --ignore-missing-imports \
--strict-optional \
--disallow-untyped-calls \
--disallow-untyped-defs \
--disallow-incomplete-defs \
--check-untyped-defs \
--disallow-untyped-decorators \
--no-implicit-optional \
--warn-unused-ignores \
--warn-redundant-casts \
--warn-return-any \
telegram