File: tox.ini

package info (click to toggle)
python-lark 1.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,788 kB
  • sloc: python: 13,305; javascript: 88; makefile: 34; sh: 8
file content (44 lines) | stat: -rw-r--r-- 847 bytes parent folder | download
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