-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
58 lines (52 loc) · 1.1 KB
/
Copy pathtox.ini
File metadata and controls
58 lines (52 loc) · 1.1 KB
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
51
52
53
54
55
56
57
58
[flake8]
max-line-length = 88
extend-ignore = E203, W503
[tox]
envlist = py312, lint, type, errors, docs
minversion = 4.32.0
[testenv]
description = run the tests with pytest
package = wheel
wheel_build_env = .pkg
usedevelop = true
setenv =
PYTHONPATH = {toxinidir}/src
deps =
pytest>=6
pytest-asyncio
pytest-custom-exit-code
pytest-cov
-r{toxinidir}/src/requirements.txt
commands =
pytest --suppress-no-test-exit-code {tty:--color=yes} {posargs}
[testenv:lint]
description = run all linting, formatting, and docstring checks
skip_install = true
deps =
ruff
commands =
ruff check {posargs:src tests}
ruff format --check {posargs:src tests}
[testenv:type]
description = run type checks
deps =
mypy
pytest
types-requests
-r{toxinidir}/src/requirements.txt
commands =
mypy {posargs:src tests}
[testenv:errors]
description = check for common errors
skip_install = true
deps =
flake8
commands =
flake8 {posargs:src tests}
[testenv:docs]
description = check docstrings
skip_install = true
deps =
ruff
commands =
ruff check --select D {posargs:src tests}