-
-
Notifications
You must be signed in to change notification settings - Fork 363
Expand file tree
/
Copy pathtox.ini
More file actions
28 lines (23 loc) · 699 Bytes
/
tox.ini
File metadata and controls
28 lines (23 loc) · 699 Bytes
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
[tox]
envlist = py38,py39,py310,py311,py312,py313,mypy,precom
[pytest]
filterwarnings =
error
default::DeprecationWarning
[testenv]
extras = tests
commands =
pytest . --asyncio-mode=auto --cov responses --cov-report term-missing {posargs}
[testenv:mypy]
description = Check types using 'mypy'
basepython = python3.10
commands =
python -m mypy --config-file=mypy.ini -p responses
# see https://github.com/getsentry/responses/issues/556
python -m mypy --config-file=mypy.ini --namespace-packages -p responses
[testenv:precom]
description = Run pre-commit hooks (black, flake, etc)
basepython = python3.10
deps = pre-commit>=2.9.2
commands =
pre-commit run --all-files