forked from lark-parser/lark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
44 lines (37 loc) · 831 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, py36, py37, py38, py39, py310, py311, 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==0.950
interegular>=0.2.4
types-atomicwrites
types-regex
rich
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