-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathtox.ini
44 lines (39 loc) · 819 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 = py{310,311,312},pre-commit
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312
[testenv]
deps = -rrequirements-dev.txt
passenv =
CI
HOME
HOMEPATH
PROGRAMDATA
setenv =
GIT_AUTHOR_NAME = "test"
GIT_COMMITTER_NAME = "test"
GIT_AUTHOR_EMAIL = "[email protected]"
GIT_COMMITTER_EMAIL = "[email protected]"
commands =
coverage erase
coverage run -m pytest -vv {posargs:tests}
coverage report
[testenv:pre-commit]
basepython = python3.12
setenv =
SKIP=mypy
commands =
pre-commit run --all-files
mypy language_formatters_pre_commit_hooks tests
[testenv:venv]
basepython = python3.12
envdir = {toxinidir}/venv
commands =
[flake8]
ignore = E203, E266, E501, W503, F403
max-line-length = 141
max-complexity = 18
select = B,C,E,F,W,T4,B9