-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
63 lines (57 loc) · 1.54 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[tox]
envlist = py38, py39, py310, py311
skip_missing_interpreters = true
[pytest]
flake8-max-line-length = 9000
norecursedirs = .tox
# To work with black some items must be ignored.
# https://github.com/psf/black#how-black-wraps-lines
[flake8]
exclude = .tox
ignore = E203, E231, W503
# To work with black a specific configuration is required.
# https://github.com/psf/black#how-black-wraps-lines
[isort]
known_first_party = statick_tool
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
line_length = 88
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
[testenv]
passenv = CI
changedir = {toxinidir}/output-{envname}
deps =
flake8<5 # Pin until https://github.com/tholo/pytest-flake8/issues/87 is fixed.
flake8-pep3101
pycodestyle<2.9.0 # Pin until https://github.com/tholo/pytest-flake8/issues/87 is fixed.
pydocstyle
pytest
pytest-cov
pytest-flake8
pytest-isort
.[test]
commands =
pydocstyle ../src/statick_tex/
pycodestyle --ignore=E203,E501,W503 ../src/statick_tex/
pytest --flake8 --isort \
--cov=statick_tool.plugins.discovery.tex_discovery_plugin \
--cov=statick_tool.plugins.tool.chktex_tool_plugin \
--cov=statick_tool.plugins.tool.lacheck_tool_plugin \
--cov-report term-missing \
--doctest-modules \
{toxinidir} {posargs}
coverage xml
[testenv:py36-black]
passenv = CI
changedir = {toxinidir}/output-{envname}
deps =
black
commands =
black --check --diff {toxinidir}/src