-
-
Notifications
You must be signed in to change notification settings - Fork 417
/
tox.ini
44 lines (37 loc) · 847 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
[tox]
envlist = lint, type, py38, py39, py310, py311, py312, py313, pypy3
skip_missing_interpreters = true
[testenv]
whitelist_externals = git
deps =
-rtest-requirements.txt
passenv =
TERM
# to always force recreation and avoid unexpected side effects
recreate = True
# Require since the commands use `git`
allowlist_externals = git
commands =
git submodule sync -q
git submodule update --init
python -m tests {posargs}
[testenv:type]
description = run type check on code base
skip_install = true
recreate = false
deps =
mypy==1.10
interegular>=0.3.1,<0.4.0
types-atomicwrites
types-regex
rich<=13.4.1
commands =
mypy
[testenv:lint]
description = run linters on code base
skip_install = true
recreate = false
deps =
pre-commit
commands =
pre-commit run --all-files --show-diff-on-failure