-
Notifications
You must be signed in to change notification settings - Fork 8
/
tox.ini
50 lines (42 loc) · 865 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
39
40
41
42
43
44
45
46
47
48
49
50
[tox]
skipsdist = true
# These envs are run in order if you just run `tox`
envlist =
format # runs auto-formatter - black
lint # lints
mypy # type checking
py # tests
[base]
deps =
-r requirements.txt
[testenv:py]
deps =
pytest
pytest-cov
{[base]deps}
commands =
pytest --cov=resend --cov-report=xml \
--doctest-modules \
{posargs:tests}
[testenv:format]
deps =
black
isort
commands =
black .
isort .
description = Run linters.
[testenv:lint]
deps =
flake8<5.0.0
pep8-naming
commands =
flake8 --max-line-length=130 resend/
[testenv:mypy]
deps =
mypy
typing-extensions
types-requests
commands =
mypy --install-types --non-interactive --ignore-missing-imports resend/ examples/ tests/
description = Run the mypy tool to check static typing on the project.